DataLoader
public class AstronomicalAmplitudeReader extends Object implements DataLoader
Constructor | Description |
---|---|
AstronomicalAmplitudeReader(String supportedNames,
int columns,
int columnDoodson,
int columnHf,
double scale) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Map<Integer,Double> |
getAstronomicalAmplitudesMap() |
Get astronomical amplitudes map.
|
String |
getSupportedNames() |
Get the regular expression for supported files names.
|
void |
loadData(InputStream input,
String name) |
Load data from a stream.
|
boolean |
stillAcceptsData() |
Check if the loader still accepts new data.
|
public AstronomicalAmplitudeReader(String supportedNames, int columns, int columnDoodson, int columnHf, double scale)
supportedNames
- regular expression for supported files namescolumns
- number of columnscolumnDoodson
- Doodson number column (counting from 1)columnHf
- Hf column (counting from 1)scale
- scaling factor for astronomical amplitudepublic String getSupportedNames()
public boolean stillAcceptsData()
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.
stillAcceptsData
in interface DataLoader
public void loadData(InputStream input, String name) throws IOException
loadData
in interface DataLoader
input
- data input streamname
- name of the file (or zip entry)IOException
- if data can't be readCopyright © 2002-2019 CS Systèmes d'information. All rights reserved.