public abstract class Converter<E> extends Object
| Constructor and Description |
|---|
Converter()
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getNext()
|
void |
setNext(Converter
|
void |
write(StringBuilder
In its simplest incarnation, a convert simply appends the data extracted from the event to the buffer passed as parameter.
|
public abstract Stringconvert(E event)
event -
public void write(StringBuilderbuf, E event)
buf - The input buffer where data is appended
event - The event from where data is extracted