Class Utf16LE
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.manual.Utf16LE
-
- All Implemented Interfaces:
ComplexEncoding
,Encoding
,EncodingCore
public class Utf16LE extends Object implements ComplexEncoding
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_CHAR
-
Constructor Summary
Constructors Constructor Description Utf16LE()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CodePointBuffer
decode(char[] chars, int offset, int length, CodePointBuffer buffer)
CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer)
CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
CodePointBuffer
decodeString(String text, CodePointBuffer buffer)
ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)
String
encodeString(CodePointBuffer buffer)
static Utf16LE
getInstance()
String
getName()
String
getName(Locale locale)
boolean
isEncodingSupported()
Checks, whether this implementation supports encoding of character data.boolean
isUnicodeCharacterSupported(int c)
-
-
-
Field Detail
-
MAX_CHAR
public static final int MAX_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static Utf16LE getInstance()
-
isUnicodeCharacterSupported
public boolean isUnicodeCharacterSupported(int c)
- Specified by:
isUnicodeCharacterSupported
in interfaceEncodingCore
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.- Specified by:
encode
in interfaceEncodingCore
- Parameters:
text
-buffer
-- Returns:
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)
- 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
public CodePointBuffer decodeString(String text, CodePointBuffer buffer)
-
decode
public CodePointBuffer decode(char[] chars, int offset, int length, CodePointBuffer buffer)
-
encodeString
public String encodeString(CodePointBuffer buffer)
-
-