public abstract class EncoderBase<E> extends ContextAwareBase implements Encoder<E>
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
outputStream |
protected boolean |
started |
context
Constructor and Description |
---|
EncoderBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isStarted() |
void |
start() |
void |
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
protected boolean started
protected OutputStream outputStream
public void init(OutputStream os) throws IOException
Encoder
init
in interface Encoder<E>
os
- the output streamIOException
- failed to initialize the streamCopyright © 2005–2014 QOS.ch. All rights reserved.