Class Utf16LE
java.lang.Object
org.pentaho.reporting.libraries.fonts.encoding.manual.Utf16LE
- All Implemented Interfaces:
ComplexEncoding
,Encoding
,EncodingCore
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(char[] chars, int offset, int length, CodePointBuffer buffer) decode
(ByteBuffer text, CodePointBuffer buffer) decode
(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) decodeString
(String text, CodePointBuffer buffer) encode
(CodePointBuffer text, ByteBuffer buffer) Encode, but ignore errors.encode
(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) encodeString
(CodePointBuffer buffer) static Utf16LE
getName()
boolean
Checks, whether this implementation supports encoding of character data.boolean
isUnicodeCharacterSupported
(int c)
-
Field Details
-
MAX_CHAR
public static final int MAX_CHAR- See Also:
-
-
Constructor Details
-
Utf16LE
public Utf16LE()
-
-
Method Details
-
getInstance
-
getName
-
getName
-
isUnicodeCharacterSupported
public boolean isUnicodeCharacterSupported(int c) - Specified by:
isUnicodeCharacterSupported
in interfaceEncodingCore
-
encode
Encode, but ignore errors.- Specified by:
encode
in interfaceEncodingCore
- Parameters:
text
-buffer
-- Returns:
-
decode
- Specified by:
decode
in interfaceEncodingCore
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException - Specified by:
encode
in interfaceEncodingCore
- Throws:
EncodingException
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) throws EncodingException - Specified by:
decode
in interfaceEncodingCore
- Throws:
EncodingException
-
isEncodingSupported
public boolean isEncodingSupported()Checks, whether this implementation supports encoding of character data.- Specified by:
isEncodingSupported
in interfaceComplexEncoding
- Returns:
-
decodeString
-
decode
-
encodeString
-