Package xal.model.xml
Class LatticeXmlWriter
java.lang.Object
xal.model.xml.LatticeXmlWriter
Writes a Lattice object to an XML document, using the same format supported
by
LatticeXmlParser. Calling either the static method writeXml, or
the instance method writeLatticeToFile with a Lattice object and
a URI string identifying the fully-qualified output file, causes the elements
comprising the Lattice to be written to the specified file.- Version:
- $id:
- Author:
- Craig McChesney
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LatticeXmlWriter
public LatticeXmlWriter()
-
-
Method Details
-
writeXml
Writes suppliedLatticeto the specified XML file.- Parameters:
lattice- TheLatticeto outputfileURI- String URI of output file- Throws:
IOException- error writing to fileURI
-
documentForLattice
Returns a DOM for the supplied lattice.- Parameters:
lattice- the Lattice whose DOM to return- Returns:
- a DOM for the supplied lattice
- Throws:
IOException
-