public class SingleByteCharset extends Charset
Charset
implementation for the single-byte encodings.Modifier and Type | Field and Description |
---|---|
protected static char |
REPLACEMENT_CHARACTER
Unicode replacement character 0xFFFD.
|
Modifier | Constructor and Description |
---|---|
protected |
SingleByteCharset(String canonicalName,
String[] aliases,
char[] toUnicodeMap)
Creates a new single-byte charset using an array of unicode characters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Charset cs) |
CharsetDecoder |
newDecoder() |
CharsetEncoder |
newEncoder() |
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
protected static final char REPLACEMENT_CHARACTER
protected SingleByteCharset(String canonicalName, String[] aliases, char[] toUnicodeMap)
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)public CharsetDecoder newDecoder()
newDecoder
in class Charset
public CharsetEncoder newEncoder()
newEncoder
in class Charset
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.