Modifier and Type | Field and Description |
---|---|
private java.nio.CharBuffer |
cachedCharBuffer |
private java.nio.charset.Charset |
charset |
private java.nio.charset.CharsetEncoder |
charsetEncoder |
Constructor and Description |
---|
LockingStringBuilderEncoder(java.nio.charset.Charset charset) |
LockingStringBuilderEncoder(java.nio.charset.Charset charset,
int charBufferSize) |
Modifier and Type | Method and 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) |
private final java.nio.charset.Charset charset
private final java.nio.charset.CharsetEncoder charsetEncoder
private final java.nio.CharBuffer cachedCharBuffer
public LockingStringBuilderEncoder(java.nio.charset.Charset charset)
public LockingStringBuilderEncoder(java.nio.charset.Charset charset, int charBufferSize)
private java.nio.CharBuffer getCharBuffer()
public void encode(java.lang.StringBuilder source, ByteBufferDestination destination)
Encoder
private void logEncodeTextException(java.lang.Exception ex, java.lang.StringBuilder text, ByteBufferDestination destination)