Class LockingStringBuilderEncoder
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.LockingStringBuilderEncoder
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.CharBuffercachedCharBufferprivate java.nio.charset.Charsetcharsetprivate java.nio.charset.CharsetEncodercharsetEncoder
-
Constructor Summary
Constructors Constructor Description LockingStringBuilderEncoder(java.nio.charset.Charset charset)LockingStringBuilderEncoder(java.nio.charset.Charset charset, int charBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.lang.StringBuilder source, ByteBufferDestination destination)Encodes the specified source object to some binary representation and writes the result to the specified destination.private java.nio.CharBuffergetCharBuffer()private voidlogEncodeTextException(java.lang.Exception ex, java.lang.StringBuilder text, ByteBufferDestination destination)
-
-
-
Method Detail
-
getCharBuffer
private java.nio.CharBuffer getCharBuffer()
-
encode
public void encode(java.lang.StringBuilder source, ByteBufferDestination destination)Description copied from interface:EncoderEncodes the specified source object to some binary representation and writes the result to the specified destination.
-
logEncodeTextException
private void logEncodeTextException(java.lang.Exception ex, java.lang.StringBuilder text, ByteBufferDestination destination)
-
-