|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.pattern.Converter<E>
public abstract class Converter<E>
A minimal converter which sets up the general interface for derived classes. It also implements the functionality to chain converters in a linked list.
Constructor Summary | |
---|---|
Converter()
|
Method Summary | |
---|---|
abstract String |
convert(E event)
The convert method is responsible for extracting data from the event and storing it for later use by the write method. |
Converter<E> |
getNext()
|
void |
setNext(Converter<E> next)
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Converter()
Method Detail |
---|
public abstract String convert(E event)
event
- public void write(StringBuffer buf, E event)
buf
- The input buffer where data is appendedevent
- The event from where data is extractedpublic final void setNext(Converter<E> next)
public final Converter<E> getNext()
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |