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

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

public abstract class AbstractCharset
extends Object
implements Charset

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

Constructor Summary
AbstractCharset(String name, String[] aliases)
          Create a new instance of this AbstractCharset.
 
Method Summary
 boolean equals(Charset charset)
          Compare two Charset instances for equality.
 boolean equals(Object object)
          Compare an object to this Charset instances for equality.
 String[] getAliases()
          Return all alias names for this Charset
 String getName()
          Return the primary name of this Charset
 String toString()
          Return a String representation of this Charset.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.components.serializers.encoding.Verifier
allows
 

Constructor Detail

AbstractCharset

public AbstractCharset(String name,
                       String[] aliases)
Create a new instance of this AbstractCharset.

Parameters:
name - This Charset name.
aliases - This Charset alias names.
Throws:
NullPointerException - If one of the arguments is null.
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

equals

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

Overrides:
equals in class Object

equals

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

Specified by:
equals in interface Charset

toString

public String toString()
Return a String representation of this Charset.

Overrides:
toString in class Object


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