org.pentaho.reporting.libraries.fonts.encoding
Class ExternalEncoding

java.lang.Object
  extended by 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
ExternalEncoding(String name, EncodingCore core, org.pentaho.reporting.libraries.resourceloader.Resource resource)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalEncoding

public ExternalEncoding(String name,
                        EncodingCore core,
                        org.pentaho.reporting.libraries.resourceloader.Resource resource)
Method Detail

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

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 interface EncodingCore
Returns:
Throws:
EncodingException

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)
                       throws EncodingException
Specified by:
decode 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