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 java.lang.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
-
-
Constructor Summary
Constructors Constructor Description Iso8859_1()
-
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)java.lang.StringgetName()java.lang.StringgetName(java.util.Locale locale)booleanisUnicodeCharacterSupported(int c)
-
-
-
Method Detail
-
getName
public java.lang.String getName(java.util.Locale locale)
-
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
-
-