Package org.apache.pdfbox.encoding
Class SingleByteCharset
java.lang.Object
java.nio.charset.Charset
org.apache.pdfbox.encoding.SingleByteCharset
- All Implemented Interfaces:
Comparable<Charset>
- Direct Known Subclasses:
PDFDocEncodingCharset
Charset
implementation for the single-byte encodings.- Version:
- $Revision$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final char
Unicode replacement character 0xFFFD. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SingleByteCharset
(String canonicalName, String[] aliases, char[] toUnicodeMap) Creates a new single-byte charset using an array of unicode characters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Field Details
-
REPLACEMENT_CHARACTER
protected static final char REPLACEMENT_CHARACTERUnicode replacement character 0xFFFD.- See Also:
-
-
Constructor Details
-
SingleByteCharset
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 Details
-
contains
-
newDecoder
- Specified by:
newDecoder
in classCharset
-
newEncoder
- Specified by:
newEncoder
in classCharset
-