private static java.nio.ByteBuffer |
TextEncoderHelper.drainIfByteBufferFull(ByteBufferDestination destination,
java.nio.ByteBuffer temp,
java.nio.charset.CoderResult result) |
If the CoderResult indicates the ByteBuffer is full, synchronize on the destination and write the content
of the ByteBuffer to the destination.
|
void |
AbstractLayout.encode(LogEvent event,
ByteBufferDestination destination) |
Encodes the specified source LogEvent to some binary representation and writes the result to the specified
destination.
|
void |
Encoder.encode(T source,
ByteBufferDestination destination) |
Encodes the specified source object to some binary representation and writes the result to the specified
destination.
|
void |
LockingStringBuilderEncoder.encode(java.lang.StringBuilder source,
ByteBufferDestination destination) |
|
void |
PatternLayout.encode(LogEvent event,
ByteBufferDestination destination) |
|
void |
StringBuilderEncoder.encode(java.lang.StringBuilder source,
ByteBufferDestination destination) |
|
private static java.nio.ByteBuffer |
TextEncoderHelper.encodeAsMuchAsPossible(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
boolean endOfInput,
ByteBufferDestination destination,
java.nio.ByteBuffer temp) |
|
private static void |
TextEncoderHelper.encodeChunkedText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
java.nio.ByteBuffer byteBuf,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
This method is called before the CharEncoder has encoded any content from the CharBuffer
into the ByteBuffer, but we have already detected that the CharBuffer contents is too large to fit into the
ByteBuffer.
|
(package private) static void |
TextEncoderHelper.encodeText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
java.nio.ByteBuffer byteBuf,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
Converts the specified text to bytes and writes the resulting bytes to the specified destination.
|
static void |
TextEncoderHelper.encodeText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
ByteBufferDestination destination) |
Deprecated.
|
(package private) static void |
TextEncoderHelper.encodeTextFallBack(java.nio.charset.Charset charset,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
|
private static void |
TextEncoderHelper.flushRemainingBytes(java.nio.charset.CharsetEncoder charsetEncoder,
ByteBufferDestination destination,
java.nio.ByteBuffer temp) |
|
private void |
LockingStringBuilderEncoder.logEncodeTextException(java.lang.Exception ex,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
|
private void |
StringBuilderEncoder.logEncodeTextException(java.lang.Exception ex,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
|
private static java.nio.ByteBuffer |
TextEncoderHelper.writeAndEncodeAsMuchAsPossible(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
boolean endOfInput,
ByteBufferDestination destination,
java.nio.ByteBuffer temp,
java.nio.charset.CoderResult result) |
Continues to write the contents of the ByteBuffer to the destination and encode more of the CharBuffer text
into the ByteBuffer until the remaining encoded text fit into the ByteBuffer, at which point the ByteBuffer
is returned (without flushing the CharEncoder).
|
private static void |
TextEncoderHelper.writeChunkedEncodedText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
ByteBufferDestination destination,
java.nio.ByteBuffer byteBuf,
java.nio.charset.CoderResult result) |
This method is called when the CharEncoder has encoded (but not yet flushed) content from the CharBuffer
into the ByteBuffer and we found that the ByteBuffer is too small to hold all the content.
|
private static void |
TextEncoderHelper.writeEncodedText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
java.nio.ByteBuffer byteBuf,
ByteBufferDestination destination,
java.nio.charset.CoderResult result) |
This method is called when the CharEncoder has encoded (but not yet flushed) content from the CharBuffer
into the ByteBuffer.
|
static void |
ByteBufferDestinationHelper.writeToUnsynchronized(byte[] data,
int offset,
int length,
ByteBufferDestination destination) |
Writes the specified data to the specified destination.
|
static void |
ByteBufferDestinationHelper.writeToUnsynchronized(java.nio.ByteBuffer source,
ByteBufferDestination destination) |
Writes the specified data to the specified destination.
|