public class LatticeXmlWriter
extends java.lang.Object
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.| Constructor and Description |
|---|
LatticeXmlWriter() |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
documentForLattice(Lattice lattice)
Returns a DOM for the supplied lattice.
|
static void |
writeXml(Lattice lattice,
java.lang.String fileURI)
Writes supplied
Lattice to the specified XML file. |
public static void writeXml(Lattice lattice, java.lang.String fileURI) throws java.io.IOException
Lattice to the specified XML file.lattice - The Lattice to outputfileURI - String URI of output filejava.io.IOException - error writing to fileURIpublic static org.w3c.dom.Document documentForLattice(Lattice lattice) throws java.io.IOException
lattice - the Lattice whose DOM to returnjava.io.IOException