Package org.orekit.data
Interface DataLoader
- All Known Implementing Classes:
AbstractSolarActivityDataLoader,AstronomicalAmplitudeReader,CssiSpaceWeatherDataLoader,DtcDataLoader,EGMFormatReader,FESCHatEpsilonReader,FESCnmSnmReader,GeoMagneticModelLoader,GRGSFormatReader,ICGEMFormatReader,InterpolationTableLoader,KlobucharIonoCoefficientsLoader,MarshallSolarActivityFutureEstimationLoader,OceanTidesReader,PotentialCoefficientsReader,SEMParser,SHAFormatReader,SHMFormatReader,SOLFSMYDataLoader,ViennaModelCoefficientsLoader,YUMAParser
public interface DataLoader
Interface for loading data files from
data providers.- Author:
- Luc Maisonobe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidloadData(InputStream input, String name) Load data from a stream.booleanCheck if the loader still accepts new data.
-
Method Details
-
stillAcceptsData
boolean stillAcceptsData()Check if the loader still accepts new data.This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.
- Returns:
- true while the loader still accepts new data
-
loadData
Load data from a stream.- Parameters:
input- data input streamname- name of the file (or zip entry)- Throws:
IOException- if data can't be readParseException- if data can't be parsed or if some loader specific error occurs
-