All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xml.HTMLPrinter

com.kvisco.xml.XMLPrinter
   |
   +----com.kvisco.xml.HTMLPrinter

public class HTMLPrinter
extends XMLPrinter
A class for printing XML nodes where the output document is HTML. The result document will not be a well-formed XML document. Certain elements are printed with no ending tags
  The following elements will have no ending tag
  BR, HR, IMG, LI, and P (if it has no child nodes)

Author:
Keith Visco (kvisco@ziplink.net)

Variable Index

 o AREA
 o BASE
 o BASEFONT
 o BREAK
 o FRAME
 o HORIZONTAL_RULE
 o IMAGE
 o INPUT
 o ISINDEX
 o LINK
 o LIST_ITEM
 o META
 o PARAGRAPH
 o PARAM
 o SCRIPT

Constructor Index

 o HTMLPrinter(PrintWriter)
Creates a new HTML Printer using the given PrintWriter for output
 o HTMLPrinter(PrintWriter, int)
Creates a new HTML Printer using the given PrintWriter for output, and nodes are indenting using the specified indent size

Method Index

 o setUseFormat(boolean)
Sets whether or not this XMLPrinter should add whitespace to pretty print the XML tree

Variables

 o BREAK
 public static final String BREAK
 o PARAGRAPH
 public static final String PARAGRAPH
 o HORIZONTAL_RULE
 public static final String HORIZONTAL_RULE
 o IMAGE
 public static final String IMAGE
 o LIST_ITEM
 public static final String LIST_ITEM
 o META
 public static final String META
 o SCRIPT
 public static final String SCRIPT
 o AREA
 public static final String AREA
 o BASE
 public static final String BASE
 o BASEFONT
 public static final String BASEFONT
 o FRAME
 public static final String FRAME
 o INPUT
 public static final String INPUT
 o ISINDEX
 public static final String ISINDEX
 o LINK
 public static final String LINK
 o PARAM
 public static final String PARAM

Constructors

 o HTMLPrinter
 public HTMLPrinter(PrintWriter writer)
Creates a new HTML Printer using the given PrintWriter for output

Parameters:
writer - the PrintWriter to use for output
 o HTMLPrinter
 public HTMLPrinter(PrintWriter writer,
                    int indent)
Creates a new HTML Printer using the given PrintWriter for output, and nodes are indenting using the specified indent size

Parameters:
writer - the PrintWriter to use for output
indent - the number of spaces to indent

Methods

 o setUseFormat
 public void setUseFormat(boolean useFormat)
Sets whether or not this XMLPrinter should add whitespace to pretty print the XML tree

Overrides:
setUseFormat in class XMLPrinter

All Packages  Class Hierarchy  This Package  Previous  Next  Index