Logback API
Version 0.9.8

ch.qos.logback.core.pattern
Class FormattingConverter<E>

java.lang.Object
  extended by ch.qos.logback.core.pattern.Converter<E>
      extended by ch.qos.logback.core.pattern.FormattingConverter<E>
Direct Known Subclasses:
CompositeConverter, DynamicConverter

public abstract class FormattingConverter<E>
extends Converter<E>


Constructor Summary
FormattingConverter()
           
 
Method Summary
 FormatInfo getFormattingInfo()
           
 void setFormattingInfo(FormatInfo formattingInfo)
           
static void spacePad(StringBuffer sbuf, int length)
          Fast space padding method.
 void write(StringBuffer buf, E event)
          In its simplest incarnation, a convert simply appends the data extracted from the event to the buffer passed as parameter.
 
Methods inherited from class ch.qos.logback.core.pattern.Converter
convert, getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattingConverter

public FormattingConverter()
Method Detail

getFormattingInfo

public final FormatInfo getFormattingInfo()

setFormattingInfo

public final void setFormattingInfo(FormatInfo formattingInfo)

write

public final void write(StringBuffer buf,
                        E event)
Description copied from class: Converter
In its simplest incarnation, a convert simply appends the data extracted from the event to the buffer passed as parameter.

Overrides:
write in class Converter<E>
Parameters:
buf - The input buffer where data is appended
event - The event from where data is extracted

spacePad

public static void spacePad(StringBuffer sbuf,
                            int length)
Fast space padding method.


Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.