Class LockingStringBuilderEncoder
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.LockingStringBuilderEncoder
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.CharBuffer
cachedCharBuffer
private java.nio.charset.Charset
charset
private java.nio.charset.CharsetEncoder
charsetEncoder
-
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 void
encode(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.CharBuffer
getCharBuffer()
private void
logEncodeTextException(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:Encoder
Encodes 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)
-
-