org.apache.shindig.gadgets.parse
Class DefaultHtmlSerializer
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHtmlSerializer
public DefaultHtmlSerializer()
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.