Modifier and Type | Method and 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 IOException
reader
- containing the ephemeris file.fileName
- to use in error messages.IOException
- if reader
throws one.EphemerisFile parse(String fileName) throws IOException
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.IOException
- if one is thrown while opening or reading from fileName
Copyright © 2002-2019 CS Systèmes d'information. All rights reserved.