gov.sns.xal.model.xml
Class ProbeXmlWriter

java.lang.Object
  |
  +--gov.sns.xal.model.xml.ProbeXmlWriter

public class ProbeXmlWriter
extends java.lang.Object

Saves probe instances to an XML file.


Constructor Summary
ProbeXmlWriter()
           
 
Method Summary
static org.w3c.dom.Document documentForProbe(Probe aProbe)
          Returns a DOM for the supplied lattice.
 XmlDataAdaptor writeProbeToDoc(Probe aProbe)
          Writes supplied Probe to the specified XML file.
static void writeXml(Probe aProbe, java.lang.String fileURI)
          Writes supplied Probe to the specified XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbeXmlWriter

public ProbeXmlWriter()
Method Detail

writeXml

public static void writeXml(Probe aProbe,
                            java.lang.String fileURI)
                     throws java.io.IOException
Writes supplied Probe to the specified XML file.

Parameters:
aProbe - Probe to output
fileURI - String URI of output file
Throws:
java.io.IOException - error writing to fileURI

documentForProbe

public static org.w3c.dom.Document documentForProbe(Probe aProbe)
                                             throws java.io.IOException
Returns a DOM for the supplied lattice.

Returns:
a DOM for the supplied lattice
java.io.IOException

writeProbeToDoc

public XmlDataAdaptor writeProbeToDoc(Probe aProbe)
                               throws java.io.IOException
Writes supplied Probe to the specified XML file.

Parameters:
aProbe - Probe to write to XML file
Throws:
java.io.IOException - error writing to fileURI