edu.uci.isr.yancees.util
Class DOMParser
java.lang.Object
edu.uci.isr.yancees.util.DOMParser
public class DOMParser
- extends java.lang.Object
Method Summary |
org.w3c.dom.Document |
getDocument()
|
void |
setDocument(java.io.File file)
|
void |
setDocument(java.lang.String fileName)
|
void |
setXMLContent(java.lang.String content)
|
protected java.lang.String |
writeTextToTempFile(java.lang.String text)
Writes the text to a temp file, with a special name and in the global
temporary directory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMParser
public DOMParser()
DOMParser
public DOMParser(java.lang.String filename)
DOMParser
public DOMParser(java.io.File file)
setXMLContent
public void setXMLContent(java.lang.String content)
setDocument
public void setDocument(java.lang.String fileName)
setDocument
public void setDocument(java.io.File file)
getDocument
public org.w3c.dom.Document getDocument()
writeTextToTempFile
protected java.lang.String writeTextToTempFile(java.lang.String text)
- Writes the text to a temp file, with a special name and in the global
temporary directory
- Parameters:
text
- the text to be written
- Returns:
- the path of the file created so it can be opened and used
elsewhere