Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ikayaki.util.DocumentUtilities Class Reference

List of all members.

Static Public Member Functions

static boolean storeToXML (File file, Document document)
static boolean storeToXML (OutputStream out, Document document)
static Document loadFromXML (File file)
static Document loadFromXML (InputStream in)

Detailed Description

Tools for reading and writing DOM documents.

Author:
Esko Luontola

Definition at line 44 of file DocumentUtilities.java.


Member Function Documentation

static Document ikayaki.util.DocumentUtilities.loadFromXML InputStream  in  )  [static]
 

Returns a DOM document represented by the XML document on the specified input stream.

Parameters:
in the input stream from which to read the XML document.
Returns:
the loaded document, or null if there was an error in loading it.
Exceptions:
NullPointerException if any of the arguments is null.

Definition at line 130 of file DocumentUtilities.java.

static Document ikayaki.util.DocumentUtilities.loadFromXML File  file  )  [static]
 

Returns a DOM document represented by the XML document on the specified file.

Parameters:
file the file from which to read the XML document.
Returns:
the loaded document, or null if there was an error in loading it.
Exceptions:
NullPointerException if any of the arguments is null.

Definition at line 111 of file DocumentUtilities.java.

static boolean ikayaki.util.DocumentUtilities.storeToXML OutputStream  out,
Document  document
[static]
 

Emits an XML document representing the specified DOM document.

Parameters:
out the output stream on which to emit the XML document.
document the document to be emitted.
Returns:
true if the operation was successful, otherwise false.
Exceptions:
NullPointerException if any of the arguments is null.

Definition at line 74 of file DocumentUtilities.java.

static boolean ikayaki.util.DocumentUtilities.storeToXML File  file,
Document  document
[static]
 

Emits an XML document representing the specified DOM document.

Parameters:
file the file on which to emit the XML document.
document the document to be emitted.
Returns:
true if the operation was successful, otherwise false.
Exceptions:
NullPointerException if any of the arguments is null.

Definition at line 54 of file DocumentUtilities.java.


The documentation for this class was generated from the following file:
Generated on Fri May 6 16:01:33 2005 for Squid by  doxygen 1.4.1