Package xal.model.xml
Class TrajectoryXmlWriter
java.lang.Object
xal.model.xml.TrajectoryXmlWriter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTrajectoryToFile
(Trajectory<?> trajectory, String fileURI) Writes suppliedTrajectory
to the specified XML file.static void
writeXml
(Trajectory<?> trajectory, String fileURI) Writes suppliedTrajectory
to the specified XML file.
-
Constructor Details
-
TrajectoryXmlWriter
public TrajectoryXmlWriter()
-
-
Method Details
-
writeXml
Writes suppliedTrajectory
to the specified XML file.- Parameters:
trajectory
- TheTrajectory
to outputfileURI
- String URI of output file- Throws:
IOException
- error writing to fileURI
-
writeTrajectoryToFile
Writes suppliedTrajectory
to the specified XML file.- Parameters:
trajectory
- Probe to write to XML filefileURI
- String URI of XML output file- Throws:
IOException
- error writing to fileURI
-