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)
-
AREA
-
-
BASE
-
-
BASEFONT
-
-
BREAK
-
-
FRAME
-
-
HORIZONTAL_RULE
-
-
IMAGE
-
-
INPUT
-
-
ISINDEX
-
-
LINK
-
-
LIST_ITEM
-
-
META
-
-
PARAGRAPH
-
-
PARAM
-
-
SCRIPT
-
-
HTMLPrinter(PrintWriter)
- Creates a new HTML Printer using the given PrintWriter
for output
-
HTMLPrinter(PrintWriter, int)
- Creates a new HTML Printer using the given PrintWriter
for output, and nodes are indenting using the specified
indent size
-
setUseFormat(boolean)
- Sets whether or not this XMLPrinter should add whitespace
to pretty print the XML tree
BREAK
public static final String BREAK
PARAGRAPH
public static final String PARAGRAPH
HORIZONTAL_RULE
public static final String HORIZONTAL_RULE
IMAGE
public static final String IMAGE
LIST_ITEM
public static final String LIST_ITEM
META
public static final String META
SCRIPT
public static final String SCRIPT
AREA
public static final String AREA
BASE
public static final String BASE
BASEFONT
public static final String BASEFONT
FRAME
public static final String FRAME
INPUT
public static final String INPUT
ISINDEX
public static final String ISINDEX
LINK
public static final String LINK
PARAM
public static final String PARAM
HTMLPrinter
public HTMLPrinter(PrintWriter writer)
- Creates a new HTML Printer using the given PrintWriter
for output
- Parameters:
- writer - the PrintWriter to use for output
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
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