Class ExternalEncoding
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.ExternalEncoding
-
- All Implemented Interfaces:
Encoding
,EncodingCore
public final class ExternalEncoding extends Object implements Encoding
Creation-Date: 29.04.2006, 14:49:06- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description ExternalEncoding(String name, EncodingCore core, org.pentaho.reporting.libraries.resourceloader.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer)
CodePointBuffer
decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.ByteBuffer
encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)
String
getName()
String
getName(Locale locale)
org.pentaho.reporting.libraries.resourceloader.Resource
getResource()
boolean
isUnicodeCharacterSupported(int c)
-
-
-
Constructor Detail
-
ExternalEncoding
public ExternalEncoding(String name, EncodingCore core, org.pentaho.reporting.libraries.resourceloader.Resource resource)
-
-
Method Detail
-
isUnicodeCharacterSupported
public boolean isUnicodeCharacterSupported(int c)
- Specified by:
isUnicodeCharacterSupported
in interfaceEncodingCore
-
getResource
public org.pentaho.reporting.libraries.resourceloader.Resource getResource()
-
encode
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer) throws EncodingException
Description copied from interface:EncodingCore
Encode, but ignore errors.- Specified by:
encode
in interfaceEncodingCore
- Returns:
- Throws:
EncodingException
-
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) throws EncodingException
- Specified by:
decode
in interfaceEncodingCore
- Throws:
EncodingException
-
decode
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
- Specified by:
decode
in interfaceEncodingCore
- Throws:
EncodingException
-
-