Interface EphemerisFileParser

  • All Known Implementing Classes:
    OEMParser, SP3Parser

    public interface EphemerisFileParser
    Parse an ephemeris file.
    Author:
    Evan Ward
    • Method Detail

      • parse

        EphemerisFile parse​(BufferedReader reader,
                            String fileName)
                     throws IOException
        Parse an ephemeris file from a stream.
        Parameters:
        reader - containing the ephemeris file.
        fileName - to use in error messages.
        Returns:
        a parsed ephemeris file.
        Throws:
        IOException - if reader throws one.
      • parse

        EphemerisFile parse​(String fileName)
                     throws IOException
        Parse an ephemeris file from a file on the local file system.

        For Implementors: Most subclasses should implement this method as follows, but there is no default implementation because most subclasses should use a specialized return type.

         try (BufferedReader reader = Files.newBufferedReader(Paths.get(fileName))) {
             return parse(reader, fileName);
         }
         
        Parameters:
        fileName - path to the ephemeris file.
        Returns:
        parsed ephemeris file.
        Throws:
        IOException - if one is thrown while opening or reading from fileName.