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 CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer)CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)ByteBufferencode(CodePointBuffer text, ByteBuffer buffer)Encode, but ignore errors.ByteBufferencode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)StringgetName()StringgetName(Locale locale)booleanisUnicodeCharacterSupported(int c)
-
-
-
Method Detail
-
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
-
-