org.pentaho.reporting.libraries.fonts.encoding.manual
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 |
Ascii()
|
Ascii
public Ascii()
getName
public String getName()
- Specified by:
getName
in interface Encoding
getName
public String getName(Locale locale)
- Specified by:
getName
in interface Encoding
isUnicodeCharacterSupported
public boolean isUnicodeCharacterSupported(int c)
- Specified by:
isUnicodeCharacterSupported
in interface EncodingCore
encode
public ByteBuffer encode(CodePointBuffer text,
ByteBuffer buffer)
- Encode, but ignore errors.
- Specified by:
encode
in interface EncodingCore
- Parameters:
text
- buffer
-
- Returns:
decode
public CodePointBuffer decode(ByteBuffer text,
CodePointBuffer buffer)
- Specified by:
decode
in interface EncodingCore
encode
public ByteBuffer encode(CodePointBuffer text,
ByteBuffer buffer,
EncodingErrorType errorHandling)
throws EncodingException
- Specified by:
encode
in interface EncodingCore
- Throws:
EncodingException
decode
public CodePointBuffer decode(ByteBuffer text,
CodePointBuffer buffer,
EncodingErrorType errorHandling)
throws EncodingException
- Specified by:
decode
in interface EncodingCore
- Throws:
EncodingException