Interface EphemerisFileWriter

  • All Known Implementing Classes:
    OEMWriter

    public interface EphemerisFileWriter
    An interface for writing out ephemeris files to disk.

    An EphemerisFile consists of one or more satellites each an ID unique within the file. The ephemeris for each satellite consists of one or more segments.

    Ephemeris file formats may have additional settings that need to be configured to be compliant with their formats.

    Since:
    9.0
    Author:
    Hank Grabowski
    • Method Detail

      • write

        void write​(Appendable writer,
                   EphemerisFile ephemerisFile)
            throws IOException
        Write the passed in EphemerisFile using the passed in Appendable.
        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.)
      • write

        default void write​(String outputFilePath,
                           EphemerisFile ephemerisFile)
                    throws IOException
        Write the passed in EphemerisFile to a file at the output path specified.
        Parameters:
        outputFilePath - a file path that the corresponding file will be written to
        ephemerisFile - a populated ephemeris file to serialize into the buffer
        Throws:
        IOException - 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.)