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