|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.HandlerBase
byucc.jhdl.util.xmac.DocumentMaker
This class creates a DOM document from an input XML file. Upon creation the document has all empty text nodes removed so the rest of the parser doesn't have to deal with them.
| Field Summary | |
java.lang.StringBuffer |
result
This StringBuffer contains the results of the parse operation. |
| Constructor Summary | |
DocumentMaker()
|
|
| Method Summary | |
void |
error(org.xml.sax.SAXParseException ex)
Error. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Fatal error. |
static org.w3c.dom.Document |
parseDOM(java.lang.String filename)
This method parses a file and returns a DOM document representation of that file. |
static org.w3c.dom.Document |
parseDOM(java.lang.String filename,
boolean validate)
This method parses a file and returns a DOM document representation of that file. |
void |
warning(org.xml.sax.SAXParseException ex)
Warning. |
| Methods inherited from class org.xml.sax.HandlerBase |
characters, endDocument, endElement, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, startElement, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.StringBuffer result
| Constructor Detail |
public DocumentMaker()
| Method Detail |
public static org.w3c.dom.Document parseDOM(java.lang.String filename)
throws java.lang.Exception
filename - A String representing the filename
to parse.
java.lang.Exception
public static org.w3c.dom.Document parseDOM(java.lang.String filename,
boolean validate)
throws java.lang.Exception
filename - A String representing the filename
to parse.validate - True if the parser is to validate the input document, false
otherwise.
java.lang.Exceptionpublic void warning(org.xml.sax.SAXParseException ex)
public void error(org.xml.sax.SAXParseException ex)
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||