|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sirius.patrius.tools.ephemerisComparator.AbstractDataLoader
public abstract class AbstractDataLoader
This abstract class is the base for a DataLoader.
With this class, one can get a stream out of a text file.
In order to use it, one has to develop his own subclass, or use one of the provided subclasses
MediaSize.NA,
Serialized Form| Constructor Summary | |
|---|---|
AbstractDataLoader()
|
|
| Method Summary | |
|---|---|
abstract Data<Double> |
getData(BufferedReader reader)
parses the text reader to a Data object. |
BufferedReader |
getStream(File ephemerisFile)
Produces a BufferedReader from a File object. |
BufferedReader |
getStream(URL url)
Produces a BufferedReader from a url to a text file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataLoader()
| Method Detail |
|---|
public final BufferedReader getStream(File ephemerisFile)
throws EphemerisComparatorException
BufferedReader from a File object.
ephemerisFile - the file representing the text file to load
EphemerisComparatorException - when the file can not be found
public final BufferedReader getStream(URL url)
throws EphemerisComparatorException
BufferedReader from a url to a text file.
url - the url to the text file to load
EphemerisComparatorException - when the file can not be found
public abstract Data<Double> getData(BufferedReader reader)
throws IOException
Data object.
reader - a BufferedReader to a text file
IOException - if there is a problem during the reading
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||