de.schlichtherle.nio.charset
Class OctetCharset
java.lang.Object
java.nio.charset.Charset
de.schlichtherle.nio.charset.OctetCharset
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- IBM437Charset
public abstract class OctetCharset
- extends Charset
A memory efficient base class for simple 8 bit (octet) character sets.
- Version:
- TrueZIP 6.7
- Author:
- Christian Schlichtherle
Field Summary |
protected static char |
REPLACEMENT
Use this character in the lookup table provided to the constructor for
every character that does not have a replacement in 16 bit Unicode. |
Methods inherited from class java.nio.charset.Charset |
aliases, availableCharsets, canEncode, compareTo, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString |
REPLACEMENT
protected static final char REPLACEMENT
- Use this character in the lookup table provided to the constructor for
every character that does not have a replacement in 16 bit Unicode.
- See Also:
- Constant Field Values
OctetCharset
protected OctetCharset(String cname,
String[] aliases,
char[] byte2char)
contains
public boolean contains(Charset cs)
- Specified by:
contains
in class Charset
newEncoder
public CharsetEncoder newEncoder()
- Specified by:
newEncoder
in class Charset
newDecoder
public CharsetDecoder newDecoder()
- Specified by:
newDecoder
in class Charset