Class OEMWriter

    • Field Detail

      • DEFAULT_INTERPOLATION_METHOD

        public static final OEMWriter.InterpolationMethod DEFAULT_INTERPOLATION_METHOD
        Default interpolation method if the user specifies none.
      • DEFAULT_ORIGINATOR

        public static final String DEFAULT_ORIGINATOR
        Default originator field value if user specifies none.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OEMWriter

        public OEMWriter()
        Standard default constructor that creates a writer with default configurations.
      • OEMWriter

        public OEMWriter​(OEMWriter.InterpolationMethod interpolationMethod,
                         String originator,
                         String spaceObjectId,
                         String spaceObjectName)
        Constructor used to create a new OEM writer configured with the necessary parameters to successfully fill in all required fields that aren't part of a standard @{link EphemerisFile} object.
        Parameters:
        interpolationMethod - The interpolation method to specify in the OEM file
        originator - The originator field string
        spaceObjectId - The spacecraft ID
        spaceObjectName - The space object common name
    • Method Detail

      • write

        public void write​(Appendable writer,
                          EphemerisFile ephemerisFile)
                   throws IOException
        Write the passed in EphemerisFile using the passed in Appendable.
        Specified by:
        write in interface EphemerisFileWriter
        Parameters:
        writer - a configured Appendable to feed with text
        ephemerisFile - a populated ephemeris file to serialize into the buffer
        Throws:
        IOException - 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.)