org.dsmltools
Class DSMLFile

java.lang.Object
  extended by org.dsmltools.DSMLFile
Direct Known Subclasses:
DSML2LDAP, DSMLDiff, DSMLValidate, LDAP2DSML

public class DSMLFile
extends java.lang.Object

This class does file IO for DSML documents. It contains methods to read a file containing DSML from disk, and write a Document out as a DSML file.


Constructor Summary
DSMLFile()
           
 
Method Summary
static org.w3c.dom.Document readDSML(java.lang.String xiFilename)
          Reads DSML from a given filename, or stdin if the filename is null.
static void writeDSML(java.lang.String xiFileName, org.w3c.dom.Document xiDoc)
          Writes a given document to a given filename, or to stdout if the filename is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSMLFile

public DSMLFile()
Method Detail

readDSML

public static org.w3c.dom.Document readDSML(java.lang.String xiFilename)
Reads DSML from a given filename, or stdin if the filename is null.

Parameters:
xiFilename - The filename to read from, or null to read from stdin.
Returns:
The Document which was read

writeDSML

public static void writeDSML(java.lang.String xiFileName,
                             org.w3c.dom.Document xiDoc)
Writes a given document to a given filename, or to stdout if the filename is null.

Parameters:
xiFileName - The file to write to, or null for stdout
xiDoc - The Document to write