org.apache.cocoon.components.serializers.encoding
Class UnknownCharset

java.lang.Object
  extended by org.apache.cocoon.components.serializers.encoding.UnknownCharset
All Implemented Interfaces:
Charset, Verifier
Direct Known Subclasses:
DefaultEncoder

public class UnknownCharset
extends Object
implements Charset

The Charset implementation provided by this factory for the unknown charset.

Version:
CVS $Id: UnknownCharset.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Pier Fumagalli, February 2003

Constructor Summary
UnknownCharset()
          Create a new instance of this UnknownCharset.
 
Method Summary
 boolean allows(char c)
          Check if the specified character by representable in this specifiec Charset instance.
 boolean equals(Charset charset)
          Compare an object to this Charset instances for equality.
 boolean equals(Object object)
          Compare two Charset instances for equality.
 String[] getAliases()
          Return all alias names for this Charset
 String getName()
          Return the primary name of this Charset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownCharset

public UnknownCharset()
Create a new instance of this UnknownCharset.

Method Detail

getName

public String getName()
Return the primary name of this Charset

Specified by:
getName in interface Charset

getAliases

public String[] getAliases()
Return all alias names for this Charset

Specified by:
getAliases in interface Charset

allows

public boolean allows(char c)
Check if the specified character by representable in this specifiec Charset instance.

This implementation always returns true.

Specified by:
allows in interface Verifier

equals

public boolean equals(Object object)
Compare two Charset instances for equality.

Overrides:
equals in class Object

equals

public boolean equals(Charset charset)
Compare an object to this Charset instances for equality.

Specified by:
equals in interface Charset


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.