Class Ascii
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.manual.Ascii
-
- All Implemented Interfaces:
Encoding
,EncodingCore
public final class Ascii extends Object implements Encoding
This is a lucky case, as ASCII can be transformed directly. There is no lookup step needed.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description Ascii()
-
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)
-
-
-
Method Detail
-
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
-
-