Package org.orekit.files.general
Interface EphemerisFileParser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EphemerisFile
parse(BufferedReader reader, String fileName)
Parse an ephemeris file from a stream.EphemerisFile
parse(String fileName)
Parse an ephemeris file from a file on the local file system.
-
-
-
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
- ifreader
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 fromfileName
.
-
-