org.pentaho.reporting.libraries.fonts.encoding.manual

Class Iso8859_1

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

Constructor Summary
Iso8859_1()
Method Summary
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)

Constructor Detail

Iso8859_1

public Iso8859_1()

Method Detail

decode

public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)

decode

public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)

encode

public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.

Parameters: text buffer

Returns:

encode

public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)

getName

public String getName()

getName

public String getName(Locale locale)

isUnicodeCharacterSupported

public boolean isUnicodeCharacterSupported(int c)