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

java.lang.Object
  extended by org.apache.cocoon.components.serializers.encoding.AbstractCharset
      extended by org.apache.cocoon.components.serializers.encoding.CompiledCharset
          extended by org.apache.cocoon.components.serializers.encoding.CompiledEncoder
              extended by org.apache.cocoon.components.serializers.encoding.XMLEncoder
                  extended by org.apache.cocoon.components.serializers.encoding.XHTMLEncoder
                      extended by org.apache.cocoon.components.serializers.encoding.HTMLEncoder
All Implemented Interfaces:
Charset, Encoder, Verifier

public class HTMLEncoder
extends XHTMLEncoder

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

Field Summary
 
Fields inherited from class org.apache.cocoon.components.serializers.encoding.CompiledCharset
encoding
 
Constructor Summary
  HTMLEncoder()
          Create a new instance of this HTMLEncoder.
protected HTMLEncoder(String name)
          Create a new instance of this HTMLEncoder.
 
Method Summary
protected  boolean compile(char c)
          Return true or false wether this encoding can encode the specified character or not.
 char[] encode(char c)
          Return an array of characters representing the encoding for the specified character.
 
Methods inherited from class org.apache.cocoon.components.serializers.encoding.CompiledCharset
allows, compile
 
Methods inherited from class org.apache.cocoon.components.serializers.encoding.AbstractCharset
equals, equals, getAliases, getName, toString
 
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

HTMLEncoder

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


HTMLEncoder

protected HTMLEncoder(String name)
Create a new instance of this HTMLEncoder.

Parameters:
name - A name for this Encoding.
Throws:
NullPointerException - If one of the arguments is null.
Method Detail

compile

protected boolean compile(char c)
Return true or false wether this encoding can encode the specified character or not.

Overrides:
compile in class XHTMLEncoder
See Also:
W3C XML 1.0

encode

public char[] encode(char c)
Return an array of characters representing the encoding for the specified character.

Specified by:
encode in interface Encoder
Overrides:
encode in class XHTMLEncoder


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