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