public class AEMWriter extends Object
Constructor and Description |
---|
AEMWriter()
Standard default constructor that creates a writer with default
configurations.
|
AEMWriter(String originator,
String spaceObjectId,
String spaceObjectName)
Constructor used to create a new AEM writer configured with the necessary
parameters to successfully fill in all required fields that aren't part
of a standard object.
|
Modifier and Type | Method and Description |
---|---|
void |
write(Appendable writer,
AEMFile aemFile)
Write the passed in
AEMFile using the passed in Appendable . |
void |
write(String outputFilePath,
AEMFile aemFile)
Write the passed in
AEMFile to a file at the output path specified. |
public AEMWriter()
public AEMWriter(String originator, String spaceObjectId, String spaceObjectName)
originator
- the originator field stringspaceObjectId
- the spacecraft IDspaceObjectName
- the space object common namepublic void write(Appendable writer, AEMFile aemFile) throws IOException
AEMFile
using the passed in Appendable
.writer
- a configured Appendable to feed with textaemFile
- a populated aem file to serialize into the bufferIOException
- if any buffer writing operations fail or if the underlying
format doesn't support a configuration in the EphemerisFile
for example having multiple satellites in one file, having
the origin at an unspecified celestial body, etc.)public void write(String outputFilePath, AEMFile aemFile) throws IOException
AEMFile
to a file at the output path specified.outputFilePath
- a file path that the corresponding file will be written toaemFile
- a populated aem file to serialize into the bufferIOException
- if any file writing operations fail or if the underlying
format doesn't support a configuration in the EphemerisFile
(for example having multiple satellites in one file, having
the origin at an unspecified celestial body, etc.)Copyright © 2002-2020 CS GROUP. All rights reserved.