org.orekit.data
Interface DataLoader

All Known Subinterfaces:
EOP1980HistoryLoader, EOP2000HistoryLoader, UTCTAILoader
All Known Implementing Classes:
ACSOLFormatReader, BulletinBFilesLoader, COFFileFormatReader, EGMFormatReader, EOP05C04FilesLoader, EOP08C04FilesLoader, FES2004FormatReader, GeoMagneticModelReader, GRGSFormatReader, GRGSRL02FormatReader, ICGEMFormatReader, InterpolationTableLoader, MarshallSolarActivityFutureEstimation, NOAAFormatReader, NoEOP1980HistoryLoader, OceanTidesCoefficientsReader, PotentialCoefficientsReader, PVEphemerisLoader, R12Loader, RapidDataAndPredictionColumnsLoader, RapidDataAndPredictionXMLLoader, SHMFormatReader, SolarActivityDataReader, TLESeries, USKLoader, VariablePotentialCoefficientsReader

public interface DataLoader

Interface for loading data files from data providers.

Author:
Luc Maisonobe
See Also:
DataProvider

Method Summary
 void loadData(InputStream input, String name)
          Load data from a stream.
 boolean stillAcceptsData()
          Check if the loader still accepts new data.
 

Method Detail

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

void loadData(InputStream input,
              String name)
              throws IOException,
                     ParseException,
                     OrekitException
Load data from a stream.

Parameters:
input - data input stream
name - name of the file (or zip entry)
Throws:
IOException - if data can't be read
ParseException - if data can't be parsed
OrekitException - if some data is missing or if some loader specific error occurs


Copyright © 2017 CNES. All Rights Reserved.