T - the type of objects that the Encoder can encodeLayout<T>, StringLayoutAbstractCsvLayout, AbstractLayout, AbstractStringLayout, CsvLogEventLayout, CsvParameterLayout, GelfLayout, HtmlLayout, JsonLayout, LockingStringBuilderEncoder, Log4j1XmlLayout, MessageLayout, PatternLayout, Rfc5424Layout, SerializedLayout, StringBuilderEncoder, SyslogLayout, XmlLayout, YamlLayoutpublic interface Encoder<T>
Encoder interface know how to convert an object to some binary representation and
write the result to a ByteBuffer, ideally without creating temporary objects.| Modifier and Type | Method | Description |
|---|---|---|
void |
encode(T source,
ByteBufferDestination destination) |
Encodes the specified source object to some binary representation and writes the result to the specified
destination.
|
void encode(T source, ByteBufferDestination destination)
source - the object to encode.destination - holds the ByteBuffer to write into.Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.