org.apache.shindig.gadgets.parse
Class DefaultHtmlSerializer

java.lang.Object
  extended by org.apache.shindig.gadgets.parse.DefaultHtmlSerializer
All Implemented Interfaces:
HtmlSerializer
Direct Known Subclasses:
CompactHtmlSerializer

public class DefaultHtmlSerializer
extends Object
implements HtmlSerializer

This parser does not try to escape entities in text content as it expects the parser to have retained the original entity references rather than its resolved form in text nodes.


Constructor Summary
DefaultHtmlSerializer()
           
 
Method Summary
 String serialize(Document doc)
          
 void serialize(Node n, Appendable output)
           
protected  void writeComment(Node n, Appendable output)
           
protected  void writeText(Node n, Appendable output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHtmlSerializer

public DefaultHtmlSerializer()
Method Detail

serialize

public String serialize(Document doc)

Specified by:
serialize in interface HtmlSerializer

serialize

public void serialize(Node n,
                      Appendable output)
               throws IOException
Throws:
IOException

writeText

protected void writeText(Node n,
                         Appendable output)
                  throws IOException
Throws:
IOException

writeComment

protected void writeComment(Node n,
                            Appendable output)
                     throws IOException
Throws:
IOException


Copyright © 2007-2012. All Rights Reserved.