org.orekit.forces.gravity.potential
Class EGMFormatReader
java.lang.Object
org.orekit.forces.gravity.potential.PotentialCoefficientsReader
org.orekit.forces.gravity.potential.EGMFormatReader
- All Implemented Interfaces:
- DataLoader, PotentialCoefficientsProvider
public class EGMFormatReader
- extends PotentialCoefficientsReader
This reader is adapted to the EGM Format.
The proper way to use this class is to call the PotentialReaderFactory
which will determine which reader to use with the selected potential
coefficients file
- Version:
- $Revision:1665 $ $Date:2008-06-11 12:12:59 +0200 (mer., 11 juin 2008) $
- Author:
- Fabien Maussion
- See Also:
PotentialReaderFactory
|
Constructor Summary |
EGMFormatReader(java.lang.String supportedNames,
boolean missingCoefficientsAllowed)
Simple constructor. |
|
Method Summary |
void |
loadData(java.io.InputStream input,
java.lang.String name)
Load data from a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EGMFormatReader
public EGMFormatReader(java.lang.String supportedNames,
boolean missingCoefficientsAllowed)
- Simple constructor.
- Parameters:
supportedNames - regular expression for supported files namesmissingCoefficientsAllowed - if true, allows missing coefficients in the input data
loadData
public void loadData(java.io.InputStream input,
java.lang.String name)
throws java.io.IOException,
java.text.ParseException,
OrekitException
- Load data from a stream.
- Specified by:
loadData in interface DataLoader- Specified by:
loadData in class PotentialCoefficientsReader
- Parameters:
input - data input streamname - name of the file (or zip entry)
- Throws:
java.io.IOException - if data can't be read
java.text.ParseException - if data can't be parsed
OrekitException - if some data is missing
or if some loader specific error occurs
Copyright © 2002-2010 CS Communication & Systèmes. All Rights Reserved.