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

java.lang.Object
  extended byorg.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.java 30941 2004-07-29 19:56:58Z vgritsenko $
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.


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.



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.