org.apache.pdfbox.encoding
Class SingleByteCharset

java.lang.Object
  extended by java.nio.charset.Charset
      extended by org.apache.pdfbox.encoding.SingleByteCharset
All Implemented Interfaces:
Comparable<Charset>
Direct Known Subclasses:
PDFDocEncodingCharset

public class SingleByteCharset
extends Charset

Charset implementation for the single-byte encodings.

Version:
$Revision$

Field Summary
protected static char REPLACEMENT_CHARACTER
          Unicode replacement character 0xFFFD.
 
Constructor Summary
protected SingleByteCharset(String canonicalName, String[] aliases, char[] toUnicodeMap)
          Creates a new single-byte charset using an array of unicode characters.
 
Method Summary
 boolean contains(Charset cs)
          
 CharsetDecoder newDecoder()
          
 CharsetEncoder newEncoder()
          
 
Methods inherited from class java.nio.charset.Charset
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REPLACEMENT_CHARACTER

protected static final char REPLACEMENT_CHARACTER
Unicode replacement character 0xFFFD.

See Also:
Constant Field Values
Constructor Detail

SingleByteCharset

protected SingleByteCharset(String canonicalName,
                            String[] aliases,
                            char[] toUnicodeMap)
Creates a new single-byte charset using an array of unicode characters.

Parameters:
canonicalName - the canonical name
aliases - An array of this charset's aliases, or null if it has no aliases
toUnicodeMap - the array of unicode characters (may have a maximum of 256 characters, first character must be 0x0000)
Method Detail

contains

public boolean contains(Charset cs)

Specified by:
contains in class Charset

newDecoder

public CharsetDecoder newDecoder()

Specified by:
newDecoder in class Charset

newEncoder

public CharsetEncoder newEncoder()

Specified by:
newEncoder in class Charset


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.