Class Ascii
java.lang.Object
org.pentaho.reporting.libraries.fonts.encoding.manual.Ascii
- All Implemented Interfaces:
Encoding
,EncodingCore
This is a lucky case, as ASCII can be transformed directly. There is no lookup step needed.
- Author:
- Thomas Morgner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(ByteBuffer text, CodePointBuffer buffer) decode
(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) encode
(CodePointBuffer text, ByteBuffer buffer) Encode, but ignore errors.encode
(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) getName()
boolean
isUnicodeCharacterSupported
(int c)
-
Constructor Details
-
Ascii
public Ascii()
-
-
Method Details
-
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
-