| Modifier and Type | Field and Description |
|---|---|
| private Charset | charset
The charset to use when converting a String into bytes. |
| pack-priv Boolean | |
| protected Layout | |
| pack-priv ContextAware |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private byte[] | |
| public byte[] | |
| public byte[] | |
| public Charset | |
| public Layout | |
| public byte[] | |
| public boolean | isStarted()
Overrides ch. Implements ch. |
| public void | setCharset(Charset charset)
Set the charset to use when converting the string returned by the layout into bytes. |
| public void | |
| public void | |
| public void | setParent(ContextAware parent)
This method allows RollingPolicy implementations to be aware of their containing appender. |
| public void | start()
Overrides ch. Implements ch. |
| public void | stop()
Overrides ch. Implements ch. |
| charset | back to summary |
|---|---|
| private Charset charset The charset to use when converting a String into bytes.
By default this property has the value | |
| immediateFlush | back to summary |
|---|---|
| pack-priv Boolean immediateFlush | |
| layout | back to summary |
|---|---|
| protected Layout<E> layout | |
| parent | back to summary |
|---|---|
| pack-priv ContextAware parent | |
| LayoutWrappingEncoder | back to summary |
|---|---|
| public LayoutWrappingEncoder() | |
| appendIfNotNull | back to summary |
|---|---|
| private void appendIfNotNull(StringBuilder sb, String s) | |
| convertToBytes | back to summary |
|---|---|
| private byte[] convertToBytes(String s) | |
| encode | back to summary |
|---|---|
| public byte[] encode(E event) Implements ch. Doc from ch. Encode an event as bytes. | |
| footerBytes | back to summary |
|---|---|
| public byte[] footerBytes() Implements ch. Doc from ch. Get footer bytes. This method is typically called prior to the closing of the stream where events are written.
| |
| getCharset | back to summary |
|---|---|
| public Charset getCharset() | |
| getLayout | back to summary |
|---|---|
| public Layout | |
| headerBytes | back to summary |
|---|---|
| public byte[] headerBytes() Implements ch. Doc from ch. Get header bytes. This method is typically called upon opening of an output stream.
| |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() Overrides ch. Implements ch. | |
| setCharset | back to summary |
|---|---|
| public void setCharset(Charset charset) Set the charset to use when converting the string returned by the layout into bytes.
By default this property has the value | |
| setImmediateFlush | back to summary |
|---|---|
| public void setImmediateFlush(boolean immediateFlush) Sets the immediateFlush option. The default value for immediateFlush is 'true'. If set to true, the doEncode() method will immediately flush the underlying OutputStream. Although immediate flushing is safer, it also significantly degrades logging throughput.
| |
| setLayout | back to summary |
|---|---|
| public void setLayout(Layout<E> layout) | |
| setParent | back to summary |
|---|---|
| public void setParent(ContextAware parent) This method allows RollingPolicy implementations to be aware of their containing appender. | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch. | |
| stop | back to summary |
|---|---|
| public void stop() Overrides ch. Implements ch. | |