org.orekit.files.sp3
Class SP3Parser

java.lang.Object
  extended by org.orekit.files.sp3.SP3Parser
All Implemented Interfaces:
OrbitFileParser

public class SP3Parser
extends Object
implements OrbitFileParser

A parser for the SP3 orbit file format. It supports the original format as well as the latest SP3-c version.

Note: this parser is thread-safe, so calling parse(java.lang.String) from different threads is allowed.

Author:
Thomas Neidhart
See Also:
SP3-a file format, SP3-c file format

Constructor Summary
SP3Parser()
           
 
Method Summary
 SP3File parse(InputStream stream)
          Reads an orbit file from the given stream and returns a parsed OrbitFile.
 SP3File parse(String fileName)
          Reads the orbit file and returns a parsed OrbitFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SP3Parser

public SP3Parser()
Method Detail

parse

public SP3File parse(String fileName)
              throws OrekitException
Reads the orbit file and returns a parsed OrbitFile.

Specified by:
parse in interface OrbitFileParser
Parameters:
fileName - the file to read and parse
Returns:
a parsed instance of OrbitFile
Throws:
OrekitException - if the orbit file could not be parsed successfully from the given file

parse

public SP3File parse(InputStream stream)
              throws OrekitException
Reads an orbit file from the given stream and returns a parsed OrbitFile.

Specified by:
parse in interface OrbitFileParser
Parameters:
stream - the stream to read from
Returns:
a parsed instance of OrbitFile
Throws:
OrekitException - if the orbit file could not be parsed successfully from the given stream


Copyright © 2017 CNES. All Rights Reserved.