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.
|
EphemerisFile parse(BufferedReader reader, String fileName) throws OrekitException, IOException
reader
- containing the ephemeris file.fileName
- to use in error messages.OrekitException
- if the ephemeris file cannot be parsed.IOException
- if reader
throws one.EphemerisFile parse(String fileName) throws IOException, OrekitException
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);
}
fileName
- path to the ephemeris file.OrekitException
- if the ephemeris file cannot be parsed.IOException
- if one is thrown while opening or reading from
fileName
.Copyright © 2002-2018 CS Systèmes d'information. All rights reserved.