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 TypeMethodDescriptionvoidwriteTrajectoryToFile(Trajectory<?> trajectory, String fileURI) Writes suppliedTrajectoryto the specified XML file.static voidwriteXml(Trajectory<?> trajectory, String fileURI) Writes suppliedTrajectoryto the specified XML file.
-
Constructor Details
-
TrajectoryXmlWriter
public TrajectoryXmlWriter()
-
-
Method Details
-
writeXml
Writes suppliedTrajectoryto the specified XML file.- Parameters:
trajectory- TheTrajectoryto outputfileURI- String URI of output file- Throws:
IOException- error writing to fileURI
-
writeTrajectoryToFile
Writes suppliedTrajectoryto the specified XML file.- Parameters:
trajectory- Probe to write to XML filefileURI- String URI of XML output file- Throws:
IOException- error writing to fileURI
-