public class TextEncoderHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
TextEncoderHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
copy(java.lang.StringBuilder source,
int offset,
java.nio.CharBuffer destination)
Copies characters from the StringBuilder into the CharBuffer,
starting at the specified offset and ending when either all
characters have been copied or when the CharBuffer is full.
|
private static void |
copyDataToDestination(java.nio.ByteBuffer temp,
ByteBufferDestination destination) |
private static java.nio.ByteBuffer |
drainIfByteBufferFull(ByteBufferDestination destination,
java.nio.ByteBuffer temp,
java.nio.charset.CoderResult result) |
private static java.nio.ByteBuffer |
encode(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
boolean endOfInput,
ByteBufferDestination destination,
java.nio.ByteBuffer byteBuf) |
private static java.nio.ByteBuffer |
encodeAsMuchAsPossible(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
boolean endOfInput,
ByteBufferDestination destination,
java.nio.ByteBuffer temp) |
static void |
encodeText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
ByteBufferDestination destination)
Deprecated.
|
(package private) static void |
encodeText(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
java.nio.ByteBuffer byteBuf,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
(package private) static void |
encodeTextFallBack(java.nio.charset.Charset charset,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
(package private) static void |
encodeTextWithCopy(java.nio.charset.CharsetEncoder charsetEncoder,
java.nio.CharBuffer charBuf,
java.nio.ByteBuffer temp,
java.lang.StringBuilder text,
ByteBufferDestination destination) |
private static java.nio.ByteBuffer |
flushRemainingBytes(java.nio.charset.CharsetEncoder charsetEncoder,
ByteBufferDestination destination,
java.nio.ByteBuffer temp) |
static void encodeTextFallBack(java.nio.charset.Charset charset, java.lang.StringBuilder text, ByteBufferDestination destination)
static void encodeTextWithCopy(java.nio.charset.CharsetEncoder charsetEncoder, java.nio.CharBuffer charBuf, java.nio.ByteBuffer temp, java.lang.StringBuilder text, ByteBufferDestination destination)
private static void copyDataToDestination(java.nio.ByteBuffer temp, ByteBufferDestination destination)
static void encodeText(java.nio.charset.CharsetEncoder charsetEncoder, java.nio.CharBuffer charBuf, java.nio.ByteBuffer byteBuf, java.lang.StringBuilder text, ByteBufferDestination destination)
@Deprecated public static void encodeText(java.nio.charset.CharsetEncoder charsetEncoder, java.nio.CharBuffer charBuf, ByteBufferDestination destination)
private static java.nio.ByteBuffer encode(java.nio.charset.CharsetEncoder charsetEncoder, java.nio.CharBuffer charBuf, boolean endOfInput, ByteBufferDestination destination, java.nio.ByteBuffer byteBuf)
private static java.nio.ByteBuffer encodeAsMuchAsPossible(java.nio.charset.CharsetEncoder charsetEncoder, java.nio.CharBuffer charBuf, boolean endOfInput, ByteBufferDestination destination, java.nio.ByteBuffer temp) throws java.nio.charset.CharacterCodingException
java.nio.charset.CharacterCodingException
private static java.nio.ByteBuffer drainIfByteBufferFull(ByteBufferDestination destination, java.nio.ByteBuffer temp, java.nio.charset.CoderResult result)
private static java.nio.ByteBuffer flushRemainingBytes(java.nio.charset.CharsetEncoder charsetEncoder, ByteBufferDestination destination, java.nio.ByteBuffer temp) throws java.nio.charset.CharacterCodingException
java.nio.charset.CharacterCodingException
static int copy(java.lang.StringBuilder source, int offset, java.nio.CharBuffer destination)