info.monitorenter.cpdetector.io
Class UnsupportedCharset

java.lang.Object
  extended by java.nio.charset.Charset
      extended by info.monitorenter.cpdetector.io.UnsupportedCharset
All Implemented Interfaces:
Comparable<Charset>

public class UnsupportedCharset
extends Charset

A dummy charset that indicates an unknown charset. Nevertheless some indication of a encoding definition has been found that is contained here. The system just does not support that codepage.

These instances are obtained by the static singleton retrieval call forName(String) which allows unique instances for a detected string.

Author:
Achim Westermann

Method Summary
 boolean contains(Charset cs)
           
 String displayName()
           
 String displayName(Locale locale)
           
static Charset forName(String name)
           
 CharsetDecoder newDecoder()
           
 CharsetEncoder newEncoder()
           
 
Methods inherited from class java.nio.charset.Charset
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, encode, encode, equals, hashCode, isRegistered, isSupported, name, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

forName

public static Charset forName(String name)

contains

public boolean contains(Charset cs)
Specified by:
contains in class Charset

newDecoder

public CharsetDecoder newDecoder()
Specified by:
newDecoder in class Charset

newEncoder

public CharsetEncoder newEncoder()
Specified by:
newEncoder in class Charset

displayName

public String displayName()
Overrides:
displayName in class Charset

displayName

public String displayName(Locale locale)
Overrides:
displayName in class Charset


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.