Top Description Fields Constructors Methods
ch.qos.logback.core.pattern

public abstract Class Converter<E>

extends Object
Class Inheritance
Known Direct Subclasses
ch.qos.logback.core.pattern.FormattingConverter, ch.qos.logback.core.pattern.LiteralConverter

A minimal converter which sets up the general interface for derived classes. It also implements the functionality to chain converters in a linked list.
Author
ceki

Field Summary

Modifier and TypeField and Description
pack-priv Converter<E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public 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.

public final Converter<E>
public final void
setNext(Converter<E> next)

public void
write(StringBuilder
The input buffer where data is appended
buf
,
E
The event from where data is extracted
event
)

In its simplest incarnation, a convert simply appends the data extracted from the event to the buffer passed as parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
pack-priv Converter<E> next

Constructor Detail

Converterback to summary
public Converter()

Method Detail

convertback to summary
public 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.

getNextback to summary
public final Converter<E> getNext()
setNextback to summary
public final void setNext(Converter<E> next)
writeback to summary
public void write(StringBuilder buf, E event)

In its simplest incarnation, a convert simply appends the data extracted from the event to the buffer passed as parameter.

Parameters
buf:StringBuilder

The input buffer where data is appended

event:E

The event from where data is extracted