Class BuiltInJavaEncoding
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.manual.BuiltInJavaEncoding
-
- All Implemented Interfaces:
Encoding
,EncodingCore
public class BuiltInJavaEncoding extends Object implements Encoding
-
-
Constructor Summary
Constructors Constructor Description BuiltInJavaEncoding(String name, boolean fastMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer)
CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)
String
getName()
String
getName(Locale locale)
boolean
isUnicodeCharacterSupported(int c)
-
-
-
Constructor Detail
-
BuiltInJavaEncoding
public BuiltInJavaEncoding(String name, boolean fastMode)
-
-
Method Detail
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer) throws EncodingException
- Specified by:
decode
in interfaceEncodingCore
- Throws:
EncodingException
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
- Specified by:
decode
in interfaceEncodingCore
- Throws:
EncodingException
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer) throws EncodingException
Encode, but ignore errors.- Specified by:
encode
in interfaceEncodingCore
- Parameters:
text
-buffer
-- Returns:
- Throws:
EncodingException
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
- Specified by:
encode
in interfaceEncodingCore
- Throws:
EncodingException
-
isUnicodeCharacterSupported
public boolean isUnicodeCharacterSupported(int c)
- Specified by:
isUnicodeCharacterSupported
in interfaceEncodingCore
-
-