Class Utf16LE
java.lang.Object
org.pentaho.reporting.libraries.fonts.encoding.manual.Utf16LE
- All Implemented Interfaces:
ComplexEncoding,Encoding,EncodingCore
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 Utf16LEgetName()booleanChecks, whether this implementation supports encoding of character data.booleanisUnicodeCharacterSupported(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:
isUnicodeCharacterSupportedin interfaceEncodingCore
-
encode
Encode, but ignore errors.- Specified by:
encodein interfaceEncodingCore- Parameters:
text-buffer-- Returns:
-
decode
- Specified by:
decodein interfaceEncodingCore
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException - Specified by:
encodein interfaceEncodingCore- Throws:
EncodingException
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) throws EncodingException - Specified by:
decodein interfaceEncodingCore- Throws:
EncodingException
-
isEncodingSupported
public boolean isEncodingSupported()Checks, whether this implementation supports encoding of character data.- Specified by:
isEncodingSupportedin interfaceComplexEncoding- Returns:
-
decodeString
-
decode
-
encodeString
-