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

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.encoding.manual.Utf16LE
All Implemented Interfaces:
ComplexEncoding, Encoding, EncodingCore

public class Utf16LE
extends java.lang.Object
implements ComplexEncoding

Creation-Date: 20.04.2006, 18:01:39

Author:
Thomas Morgner

Field Summary
static int MAX_CHAR
           
 
Constructor Summary
Utf16LE()
           
 
Method Summary
 CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)
           
 CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
           
 CodePointBuffer decode(char[] chars, int offset, int length, CodePointBuffer buffer)
           
 CodePointBuffer decodeString(java.lang.String text, CodePointBuffer buffer)
           
 ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
          Encode, but ignore errors.
 ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)
           
 java.lang.String encodeString(CodePointBuffer buffer)
           
static Utf16LE getInstance()
           
 java.lang.String getName()
           
 java.lang.String getName(java.util.Locale locale)
           
 boolean isEncodingSupported()
          Checks, whether this implementation supports encoding of character data.
 boolean isUnicodeCharacterSupported(int c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CHAR

public static final int MAX_CHAR
See Also:
Constant Field Values
Constructor Detail

Utf16LE

public Utf16LE()
Method Detail

getInstance

public static Utf16LE getInstance()

getName

public java.lang.String getName()
Specified by:
getName in interface Encoding

getName

public java.lang.String getName(java.util.Locale locale)
Specified by:
getName in interface Encoding

isUnicodeCharacterSupported

public boolean isUnicodeCharacterSupported(int c)
Specified by:
isUnicodeCharacterSupported in interface EncodingCore

encode

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

Specified by:
encode in interface EncodingCore
Parameters:
text -
buffer -
Returns:

decode

public CodePointBuffer decode(ByteBuffer text,
                              CodePointBuffer buffer)
Specified by:
decode in interface EncodingCore

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,
                              EncodingErrorType errorHandling)
                       throws EncodingException
Specified by:
decode in interface EncodingCore
Throws:
EncodingException

isEncodingSupported

public boolean isEncodingSupported()
Checks, whether this implementation supports encoding of character data.

Specified by:
isEncodingSupported in interface ComplexEncoding
Returns:

decodeString

public CodePointBuffer decodeString(java.lang.String text,
                                    CodePointBuffer buffer)

decode

public CodePointBuffer decode(char[] chars,
                              int offset,
                              int length,
                              CodePointBuffer buffer)

encodeString

public java.lang.String encodeString(CodePointBuffer buffer)