edu.uci.isr.yancees.util
Class DOMParser

java.lang.Object
  extended by edu.uci.isr.yancees.util.DOMParser

public class DOMParser
extends java.lang.Object


Constructor Summary
DOMParser()
           
DOMParser(java.io.File file)
           
DOMParser(java.lang.String filename)
           
 
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
 

Constructor Detail

DOMParser

public DOMParser()

DOMParser

public DOMParser(java.lang.String filename)

DOMParser

public DOMParser(java.io.File file)
Method Detail

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