E
- public class ObjectStreamEncoder<E> extends EncoderBase<E>
Modifier and Type | Field and Description |
---|---|
static int |
START_PEBBLE |
static int |
STOP_PEBBLE |
outputStream, started
context
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(java.io.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, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public void doEncode(E event) throws java.io.IOException
Encoder
OutputStream
.
Implementations are free to differ writing out of the encoded event and
instead write in batches.java.io.IOException
public void init(java.io.OutputStream os) throws java.io.IOException
Encoder
public void close() throws java.io.IOException
Encoder
OutputStream
. Implementations MUST not close the underlying
OutputStream
which is the responsibility of the owning appender.java.io.IOException