Package xal.model.xml

Class TrajectoryXmlWriter

java.lang.Object
xal.model.xml.TrajectoryXmlWriter

public class TrajectoryXmlWriter extends Object
Writes a Trajectory object to an XML document. This class simply creates an XML document with the appropriate header information. The work of adding the Trajectory representation is delegated to the Trajectory class.
Version:
$id:
Author:
Craig McChesney
  • Constructor Details

    • TrajectoryXmlWriter

      public TrajectoryXmlWriter()
  • Method Details

    • writeXml

      public static void writeXml(Trajectory<?> trajectory, String fileURI) throws IOException
      Writes supplied Trajectory to the specified XML file.
      Parameters:
      trajectory - The Trajectory to output
      fileURI - String URI of output file
      Throws:
      IOException - error writing to fileURI
    • writeTrajectoryToFile

      public void writeTrajectoryToFile(Trajectory<?> trajectory, String fileURI) throws IOException
      Writes supplied Trajectory to the specified XML file.
      Parameters:
      trajectory - Probe to write to XML file
      fileURI - String URI of XML output file
      Throws:
      IOException - error writing to fileURI