|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.ext.report.XMLPrinter
com.jcorporate.expresso.ext.report.DocBookPrinter
A (DOM) parser that understands the docbook schema and prints it nicely.
| Field Summary | |
protected Set |
_inlineTagSet
Set of inline tags. |
protected int |
_maxFormatLen
The maximum character count (including indentions) allowed for single line text. |
| Fields inherited from class com.jcorporate.expresso.ext.report.XMLPrinter |
_column, _indent, _indentChar, _indentLength, _newline, _omitXmlDecl, _out, DEFAULT_INDENT, log, SYSTEM_OUT |
| Constructor Summary | |
DocBookPrinter()
|
|
| Method Summary | |
void |
error(org.xml.sax.SAXParseException ex)
Issue an error |
void |
fatalError(org.xml.sax.SAXParseException ex)
Fatal error. |
protected String |
formatParaText(String text)
Print the text formatted for a tag that does not place significance on multiple whitespace. |
protected int |
getIndentLength(int col)
|
protected String[] |
getInlineTags()
|
protected boolean |
isInlineTag(org.w3c.dom.Node node)
|
protected boolean |
isInlineTag(String tagName)
|
protected boolean |
isParaTag(org.w3c.dom.Node node)
|
protected boolean |
isParaTag(String tagName)
|
protected boolean |
isPreTag(org.w3c.dom.Node node)
|
protected boolean |
isPreTag(String tagName)
|
static void |
main(String[] args)
|
static String |
nodeToString(org.w3c.dom.Node node)
Return the given node as a string. |
static void |
nodeToString(org.w3c.dom.Node node,
Writer writer)
Print the given node to a writer. |
protected boolean |
printFormatted(String value)
Print the text formatted for a tag that does not place significance on multiple whitespace. |
protected void |
printTree(org.w3c.dom.Node node)
Override to provide tag relative intelligence. |
static int |
run(String[] args)
|
void |
warning(org.xml.sax.SAXParseException ex)
Issue a warning on parsing errors |
| Methods inherited from class com.jcorporate.expresso.ext.report.XMLPrinter |
closeWriter, convertNewline, copyFile, getIndent, getRequiredClass, getWriter, outputDocument, print, print, println, println, printTree, run, saveDocument, setFile, setFile, setIndent, setIndentSize, setOmitXmlDecl, setWriter, toXML, toXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _maxFormatLen
protected Set _inlineTagSet
| Constructor Detail |
public DocBookPrinter()
| Method Detail |
public static String nodeToString(org.w3c.dom.Node node)
public static void nodeToString(org.w3c.dom.Node node,
Writer writer)
throws IOException
IOException
protected void printTree(org.w3c.dom.Node node)
throws IOException
printTree in class XMLPrinterIOExceptionprotected boolean isPreTag(String tagName)
protected boolean isPreTag(org.w3c.dom.Node node)
protected boolean isParaTag(String tagName)
protected boolean isParaTag(org.w3c.dom.Node node)
protected boolean isInlineTag(org.w3c.dom.Node node)
protected boolean isInlineTag(String tagName)
protected String[] getInlineTags()
protected int getIndentLength(int col)
protected boolean printFormatted(String value)
throws IOException
value - The text to print.
IOExceptionprotected String formatParaText(String text)
text - The text to print.public static int run(String[] args)
public static void main(String[] args)
public void warning(org.xml.sax.SAXParseException ex)
warning in interface org.xml.sax.ErrorHandlerwarning in class XMLPrinterex - A Sax Parse Exception eventpublic void error(org.xml.sax.SAXParseException ex)
error in interface org.xml.sax.ErrorHandlererror in class XMLPrinterex - A Sax Parse Exception event
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerfatalError in class XMLPrinterex - A Sax Parse Exception event
org.xml.sax.SAXException - after logging the Parsing Exception
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||