Class PrettyHtmlSerializer


  • public class PrettyHtmlSerializer
    extends HtmlSerializer

    Pretty HTML serializer - creates resulting HTML with indenting lines.

    • Constructor Detail

      • PrettyHtmlSerializer

        public PrettyHtmlSerializer​(CleanerProperties props,
                                    java.lang.String indentString)
    • Method Detail

      • serialize

        protected void serialize​(TagNode tagNode,
                                 java.io.Writer writer)
                          throws java.io.IOException
        Specified by:
        serialize in class Serializer
        Throws:
        java.io.IOException
      • serializePrettyHtml

        protected void serializePrettyHtml​(TagNode tagNode,
                                           java.io.Writer writer,
                                           int level,
                                           boolean isPreserveWhitespaces,
                                           boolean isLastNewLine)
                                    throws java.io.IOException
        Throws:
        java.io.IOException