|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mavis.util.DocumentUtilities
public class DocumentUtilities
Tools for reading and writing DOM documents.
Constructor Summary | |
---|---|
DocumentUtilities()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
loadFromXML(java.io.File file)
Returns a DOM document represented by the XML document on the specified file. |
static org.w3c.dom.Document |
loadFromXML(java.io.InputStream in)
Returns a DOM document represented by the XML document on the specified input stream. |
static boolean |
storeToXML(java.io.File file,
org.w3c.dom.Document document)
Emits an XML document representing the specified DOM document. |
static boolean |
storeToXML(java.io.OutputStream out,
org.w3c.dom.Document document)
Emits an XML document representing the specified DOM document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentUtilities()
Method Detail |
---|
public static boolean storeToXML(java.io.File file, org.w3c.dom.Document document)
file
- the file on which to emit the XML document.document
- the document to be emitted.
java.lang.NullPointerException
- if any of the arguments is null.public static boolean storeToXML(java.io.OutputStream out, org.w3c.dom.Document document)
out
- the output stream on which to emit the XML document.document
- the document to be emitted.
java.lang.NullPointerException
- if any of the arguments is null.public static org.w3c.dom.Document loadFromXML(java.io.File file)
file
- the file from which to read the XML document.
java.lang.NullPointerException
- if any of the arguments is null.public static org.w3c.dom.Document loadFromXML(java.io.InputStream in)
in
- the input stream from which to read the XML document.
java.lang.NullPointerException
- if any of the arguments is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |