public class TextEncoderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
encodeText(CharsetEncoder charsetEncoder,
CharBuffer charBuf,
ByteBufferDestination destination)
Deprecated.
|
static void |
encodeText(CharsetEncoder charsetEncoder,
CharBuffer charBuf,
ByteBuffer byteBuf,
StringBuilder text,
ByteBufferDestination destination)
Converts the specified text to bytes and writes the resulting bytes to the specified destination.
|
public static void encodeText(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBuffer byteBuf, StringBuilder text, ByteBufferDestination destination)
charsetEncoder
- thread-local encoder instance for converting chars to bytescharBuf
- thread-local text buffer for converting text to bytesbyteBuf
- thread-local buffer to temporarily hold converted bytes before copying them to the destinationtext
- the text to convert and write to the destinationdestination
- the destination to write the bytes to@Deprecated public static void encodeText(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBufferDestination destination)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.