fr.cnes.sirius.patrius.tools.ephemerisComparator
Class PSimuDataLoader
java.lang.Object
fr.cnes.sirius.patrius.tools.ephemerisComparator.AbstractDataLoader
fr.cnes.sirius.patrius.tools.ephemerisComparator.PSimuDataLoader
- All Implemented Interfaces:
- Serializable
public class PSimuDataLoader
- extends AbstractDataLoader
This Loader is designed to extract the data from a PSimu formatted ephemeris file.
It can first get a reader of the text file, then parse the information to produce a Data object.
- Since:
- 1.0
- Version:
- $Id: PSimuDataLoader.java 9755 2014-01-06 17:06:13Z houdroge $
- Author:
- Philippe Pavero
- See Also:
AbstractDataLoader,
Serialized Form- Concurrency :
- not thread-safe
- Concurrency comment :
- the file could be tampered with while reading it
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSimuDataLoader
public PSimuDataLoader()
getData
public final Data<Double> getData(BufferedReader reader)
throws IOException
- Reads the data through the BufferedReader. Recognises the lines that contain the data, split them and parse the
pieces to build a data set and return a Data object.
- Specified by:
getData in class AbstractDataLoader
- Parameters:
reader - the buffered reader that is a link to the data
- Returns:
- a Data object containing the data that extracted from the stream
- Throws:
IOException - if there is a problem during the reading- See Also:
AbstractDataLoader.getData(java.io.BufferedReader)
Copyright © 2016 CNES. All Rights Reserved.