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 intMAX_CHAR
-
Constructor Summary
Constructors Constructor Description Utf16LE()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CodePointBufferdecode(char[] chars, int offset, int length, CodePointBuffer buffer)CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer)CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)CodePointBufferdecodeString(String text, CodePointBuffer buffer)ByteBufferencode(CodePointBuffer text, ByteBuffer buffer)Encode, but ignore errors.ByteBufferencode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)StringencodeString(CodePointBuffer buffer)static Utf16LEgetInstance()StringgetName()StringgetName(Locale locale)booleanisEncodingSupported()Checks, whether this implementation supports encoding of character data.booleanisUnicodeCharacterSupported(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:
isUnicodeCharacterSupportedin interfaceEncodingCore
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.- Specified by:
encodein interfaceEncodingCore- Parameters:
text-buffer-- Returns:
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)
- 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
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)
-
-