|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjitas.xml.parser.XMLParser
public abstract class XMLParser
The abstract class that provides the basic functions for users to parse the content of XML files.
Constructor Summary | |
---|---|
XMLParser()
|
Method Summary | |
---|---|
boolean |
checkWeCanWriteToFile(java.lang.String pathName)
|
boolean |
documentIsEmpty(org.w3c.dom.Document parsedDoc)
|
boolean |
isFileEmpty(java.lang.String pathName)
|
org.w3c.dom.Document |
loadXML(java.lang.String pathName)
Load the XML file with given path name. |
abstract java.lang.Object |
processTree()
Using DOM parser to parse the XML file and return the collections of needed object |
void |
writeToXML(org.w3c.dom.Document parsedDoc,
java.lang.String pathName)
Write the content to XML file with given document and path name If something goes wrong, and the file can't write, we don't write anything. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParser()
Method Detail |
---|
public org.w3c.dom.Document loadXML(java.lang.String pathName) throws java.io.IOException, org.xml.sax.SAXException
pathName
-
java.io.IOException
org.xml.sax.SAXException
public abstract java.lang.Object processTree() throws java.lang.Exception
java.lang.Exception
public boolean documentIsEmpty(org.w3c.dom.Document parsedDoc)
public void writeToXML(org.w3c.dom.Document parsedDoc, java.lang.String pathName)
parsedDoc
- public boolean checkWeCanWriteToFile(java.lang.String pathName)
public boolean isFileEmpty(java.lang.String pathName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |