E - type of log event objectpublic class ObjectStreamEncoder<E> extends EncoderBase<E>
| Modifier and Type | Field and Description |
|---|---|
static int |
START_PEBBLE |
static int |
STOP_PEBBLE |
outputStream, startedcontext| Constructor and Description |
|---|
ObjectStreamEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called prior to the closing of the underling
OutputStream. |
void |
doEncode(E event)
Encode and write an event to the appropriate
OutputStream. |
void |
init(OutputStream os)
This method is called when the owning appender starts or whenever output
needs to be directed to a new OutputStream, for instance as a result of a
rollover.
|
isStarted, start, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final int START_PEBBLE
public static final int STOP_PEBBLE
public void doEncode(E event) throws IOException
EncoderOutputStream.
Implementations are free to differ writing out of the encoded event and
instead write in batches.event - the log eventIOException - failed to write log event to streampublic void init(OutputStream os) throws IOException
Encoderinit in interface Encoder<E>init in class EncoderBase<E>os - the output streamIOException - failed to initialize the streampublic void close()
throws IOException
EncoderOutputStream. Implementations MUST not close the underlying
OutputStream which is the responsibility of the owning appender.IOException - failed to close output streamCopyright © 2005–2014 QOS.ch. All rights reserved.