Package com.adobe.fontengine
Class CharsetUtil
- java.lang.Object
-
- com.adobe.fontengine.CharsetUtil
-
public class CharsetUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CharsetUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
conditionallyThrowCodingError(java.nio.charset.CoderResult result)
static java.nio.charset.CoderResult
decodeLoop(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.CharsetDecoder decoder, boolean throwExceptions)
static java.nio.charset.CoderResult
decodeLoop(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.Charset charset, boolean throwExceptions)
static java.nio.charset.CoderResult
decodeLoopNoExceptions(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.Charset charset)
static java.nio.charset.CoderResult
decodeLoopNoExceptions(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.CharsetDecoder decoder)
static java.nio.charset.CoderResult
encodeLoop(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.CharsetEncoder encoder, boolean throwExceptions)
static java.nio.charset.CoderResult
encodeLoop(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.Charset charset, boolean throwExceptions)
static java.nio.charset.CoderResult
encodeLoopNoExceptions(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.Charset charset)
static java.nio.charset.CoderResult
encodeLoopNoExceptions(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.CharsetEncoder encoder)
static java.nio.charset.Charset
forNameICU(java.lang.String charsetName)
This method is only thread-safe to the extent provided by ConcurrentHashMap.
-
-
-
Method Detail
-
encodeLoop
public static java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.CharsetEncoder encoder, boolean throwExceptions) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
encodeLoopNoExceptions
public static java.nio.charset.CoderResult encodeLoopNoExceptions(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.CharsetEncoder encoder)
-
encodeLoop
public static java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.Charset charset, boolean throwExceptions) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
encodeLoopNoExceptions
public static java.nio.charset.CoderResult encodeLoopNoExceptions(java.nio.CharBuffer input, java.nio.ByteBuffer output, java.nio.charset.Charset charset) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
decodeLoop
public static java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.CharsetDecoder decoder, boolean throwExceptions) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
decodeLoopNoExceptions
public static java.nio.charset.CoderResult decodeLoopNoExceptions(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.CharsetDecoder decoder)
-
decodeLoop
public static java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.Charset charset, boolean throwExceptions) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
decodeLoopNoExceptions
public static java.nio.charset.CoderResult decodeLoopNoExceptions(java.nio.ByteBuffer input, java.nio.CharBuffer output, java.nio.charset.Charset charset) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
conditionallyThrowCodingError
public static void conditionallyThrowCodingError(java.nio.charset.CoderResult result) throws java.nio.charset.MalformedInputException, java.nio.charset.UnmappableCharacterException
- Throws:
java.nio.charset.MalformedInputException
java.nio.charset.UnmappableCharacterException
-
forNameICU
public static java.nio.charset.Charset forNameICU(java.lang.String charsetName)
This method is only thread-safe to the extent provided by ConcurrentHashMap.
-
-