Package org.apache.pdfbox.encoding
Class SingleByteCharset
- java.lang.Object
-
- java.nio.charset.Charset
-
- org.apache.pdfbox.encoding.SingleByteCharset
-
- All Implemented Interfaces:
java.lang.Comparable<java.nio.charset.Charset>
- Direct Known Subclasses:
PDFDocEncodingCharset
public class SingleByteCharset extends java.nio.charset.Charset
Charset
implementation for the single-byte encodings.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description protected static char
REPLACEMENT_CHARACTER
Unicode replacement character 0xFFFD.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleByteCharset(java.lang.String canonicalName, java.lang.String[] aliases, char[] toUnicodeMap)
Creates a new single-byte charset using an array of unicode characters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.nio.charset.Charset cs)
java.nio.charset.CharsetDecoder
newDecoder()
java.nio.charset.CharsetEncoder
newEncoder()
-
-
-
Field Detail
-
REPLACEMENT_CHARACTER
protected static final char REPLACEMENT_CHARACTER
Unicode replacement character 0xFFFD.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SingleByteCharset
protected SingleByteCharset(java.lang.String canonicalName, java.lang.String[] aliases, char[] toUnicodeMap)
Creates a new single-byte charset using an array of unicode characters.- Parameters:
canonicalName
- the canonical namealiases
- An array of this charset's aliases, or null if it has no aliasestoUnicodeMap
- the array of unicode characters (may have a maximum of 256 characters, first character must be 0x0000)
-
-
Method Detail
-
contains
public boolean contains(java.nio.charset.Charset cs)
- Specified by:
contains
in classjava.nio.charset.Charset
-
newDecoder
public java.nio.charset.CharsetDecoder newDecoder()
- Specified by:
newDecoder
in classjava.nio.charset.Charset
-
newEncoder
public java.nio.charset.CharsetEncoder newEncoder()
- Specified by:
newEncoder
in classjava.nio.charset.Charset
-
-