de.schlichtherle.nio.charset
Class OctetCharset

java.lang.Object
  extended by java.nio.charset.Charset
      extended by 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

Nested Class Summary
protected  class OctetCharset.Decoder
           
protected  class OctetCharset.Encoder
           
 
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.
 
Constructor Summary
protected OctetCharset(String cname, String[] aliases, char[] byte2char)
           
 
Method Summary
 boolean contains(Charset cs)
           
 CharsetDecoder newDecoder()
           
 CharsetEncoder newEncoder()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

OctetCharset

protected OctetCharset(String cname,
                       String[] aliases,
                       char[] byte2char)
Method Detail

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