public class CharsetUtil extends Object
| Constructor and Description |
|---|
CharsetUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
conditionallyThrowCodingError(CoderResult result) |
static CoderResult |
decodeLoop(ByteBuffer input,
CharBuffer output,
Charset charset,
boolean throwExceptions) |
static CoderResult |
decodeLoop(ByteBuffer input,
CharBuffer output,
CharsetDecoder decoder,
boolean throwExceptions) |
static CoderResult |
decodeLoopNoExceptions(ByteBuffer input,
CharBuffer output,
Charset charset) |
static CoderResult |
decodeLoopNoExceptions(ByteBuffer input,
CharBuffer output,
CharsetDecoder decoder) |
static CoderResult |
encodeLoop(CharBuffer input,
ByteBuffer output,
Charset charset,
boolean throwExceptions) |
static CoderResult |
encodeLoop(CharBuffer input,
ByteBuffer output,
CharsetEncoder encoder,
boolean throwExceptions) |
static CoderResult |
encodeLoopNoExceptions(CharBuffer input,
ByteBuffer output,
Charset charset) |
static CoderResult |
encodeLoopNoExceptions(CharBuffer input,
ByteBuffer output,
CharsetEncoder encoder) |
static Charset |
forNameICU(String charsetName)
This method is only thread-safe to the extent provided by ConcurrentHashMap.
|
public static CoderResult encodeLoop(CharBuffer input, ByteBuffer output, CharsetEncoder encoder, boolean throwExceptions) throws MalformedInputException, UnmappableCharacterException
public static CoderResult encodeLoopNoExceptions(CharBuffer input, ByteBuffer output, CharsetEncoder encoder)
public static CoderResult encodeLoop(CharBuffer input, ByteBuffer output, Charset charset, boolean throwExceptions) throws MalformedInputException, UnmappableCharacterException
public static CoderResult encodeLoopNoExceptions(CharBuffer input, ByteBuffer output, Charset charset) throws MalformedInputException, UnmappableCharacterException
public static CoderResult decodeLoop(ByteBuffer input, CharBuffer output, CharsetDecoder decoder, boolean throwExceptions) throws MalformedInputException, UnmappableCharacterException
public static CoderResult decodeLoopNoExceptions(ByteBuffer input, CharBuffer output, CharsetDecoder decoder)
public static CoderResult decodeLoop(ByteBuffer input, CharBuffer output, Charset charset, boolean throwExceptions) throws MalformedInputException, UnmappableCharacterException
public static CoderResult decodeLoopNoExceptions(ByteBuffer input, CharBuffer output, Charset charset) throws MalformedInputException, UnmappableCharacterException
public static void conditionallyThrowCodingError(CoderResult result) throws MalformedInputException, UnmappableCharacterException
Copyright © 2010 - 2020 Adobe. All Rights Reserved