Package ch.qos.logback.core.encoder
Interface Encoder<E>
- 
- Type Parameters:
 E- event type
- All Superinterfaces:
 ContextAware,LifeCycle
- All Known Implementing Classes:
 EchoEncoder,EncoderBase,LayoutWrappingEncoder,PatternLayoutEncoder,PatternLayoutEncoderBase
@Deprecated(since="2022-01-27") public interface Encoder<E> extends ContextAware, LifeCycle
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Encoders are responsible for transform an incoming event into a byte array- Since:
 - 0.9.19
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description byte[]encode(E event)Deprecated.Encode an event as bytes.byte[]footerBytes()Deprecated.Get footer bytes.byte[]headerBytes()Deprecated.Get header bytes.- 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext 
 - 
 
 - 
 
- 
- 
Method Detail
- 
headerBytes
byte[] headerBytes()
Deprecated.Get header bytes. This method is typically called upon opening of an output stream.- Returns:
 - header bytes. Null values are allowed.
 
 
- 
encode
byte[] encode(E event)
Deprecated.Encode an event as bytes.- Parameters:
 event-
 
- 
footerBytes
byte[] footerBytes()
Deprecated.Get footer bytes. This method is typically called prior to the closing of the stream where events are written.- Returns:
 - footer bytes. Null values are allowed.
 
 
 - 
 
 -