org.apache.shindig.gadgets.parse
Class CompactHtmlSerializer

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

public class CompactHtmlSerializer
extends DefaultHtmlSerializer

Performs simple content compaction while writing HTML documents. The compaction includes:

TODO - Consider adding attribute quoting elimination, empty attribute elimination where safe end-tag elmination where safe.


Constructor Summary
CompactHtmlSerializer()
           
 
Method Summary
protected  void writeComment(Node n, Appendable output)
           
protected  void writeText(Node n, Appendable output)
           
 
Methods inherited from class org.apache.shindig.gadgets.parse.DefaultHtmlSerializer
serialize, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactHtmlSerializer

public CompactHtmlSerializer()
Method Detail

writeText

protected void writeText(Node n,
                         Appendable output)
                  throws IOException
Overrides:
writeText in class DefaultHtmlSerializer
Throws:
IOException

writeComment

protected void writeComment(Node n,
                            Appendable output)
                     throws IOException
Overrides:
writeComment in class DefaultHtmlSerializer
Throws:
IOException


Copyright © 2007-2012. All Rights Reserved.