public class LayoutWrappingEncoder<E> extends EncoderBase<E>
Constructor and Description |
---|
LayoutWrappingEncoder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(E event)
Encode an event as bytes.
|
byte[] |
footerBytes()
Get footer bytes.
|
java.nio.charset.Charset |
getCharset() |
Layout<E> |
getLayout() |
byte[] |
headerBytes()
Get header bytes.
|
boolean |
isStarted() |
void |
setCharset(java.nio.charset.Charset charset)
Set the charset to use when converting the string returned by the layout
into bytes.
|
void |
setImmediateFlush(boolean immediateFlush)
Sets the immediateFlush option.
|
void |
setLayout(Layout<E> layout) |
void |
setParent(Appender<?> parent)
This method allows RollingPolicy implementations to be aware of their
containing appender.
|
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
null which corresponds to
the system's default charset.
charset
- public void setImmediateFlush(boolean immediateFlush)
public byte[] headerBytes()
Encoder
public byte[] footerBytes()
Encoder
public byte[] encode(E event)
Encoder
public boolean isStarted()
isStarted
in interface LifeCycle
isStarted
in class EncoderBase<E>
public void start()
start
in interface LifeCycle
start
in class EncoderBase<E>
public void stop()
stop
in interface LifeCycle
stop
in class EncoderBase<E>
public void setParent(Appender<?> parent)
appender
- Copyright © 2010 - 2020 Adobe. All Rights Reserved