edu.nrao.sss.astronomy
Interface EphemerisTableReader

All Known Implementing Classes:
JplEphemerisTableReader

public interface EphemerisTableReader

A reader that can create or fill an ephemeris table from data in a file.

CVS Info:

$Revision: 161 $
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $
$Author: btruitt $

Since:
2006-06-12
Author:
David M. Harland

Method Summary
 EphemerisTable read(InputStream in)
          Creates an ephemeris table from the data found in the given input stream.
 EphemerisTable read(InputStream in, EphemerisTable destination)
          Appends the data found in the given stream to destination and returns it.
 EphemerisTable read(String fileName)
          Creates an ephemeris table from the data found in the given file.
 EphemerisTable read(String fileName, EphemerisTable destination)
          Appends the data found in the given file to destination and returns it.
 

Method Detail

read

EphemerisTable read(String fileName)
                    throws IOException
Creates an ephemeris table from the data found in the given file.

Parameters:
fileName - the name of the file that has the ephemeris data.
Returns:
a new ephemeris table based on the data in the given file.
Throws:
IOException - if anything does wrong while reading the file.

read

EphemerisTable read(String fileName,
                    EphemerisTable destination)
                    throws IOException
Appends the data found in the given file to destination and returns it. If destination is null, a new table is created, filled, and returned.

Parameters:
fileName - the name of the file that has the ephemeris data.
Returns:
destination, or a new table if destination is null, with the data from fileName appended to it.
Throws:
IOException - if anything does wrong while reading the file.

read

EphemerisTable read(InputStream in)
                    throws IOException
Creates an ephemeris table from the data found in the given input stream.

Parameters:
in - a stream that contains ephemeris data.
Returns:
a new ephemeris table based on the data in the given stream.
Throws:
IOException - if anything does wrong while reading the stream.

read

EphemerisTable read(InputStream in,
                    EphemerisTable destination)
                    throws IOException
Appends the data found in the given stream to destination and returns it. If destination is null, a new table is created, filled, and returned.

Parameters:
in - a stream that contains ephemeris data.
Returns:
destination, or a new table if destination is null, with the data from in appended to it.
Throws:
IOException - if anything does wrong while reading the file.


Copyright © 2009. All Rights Reserved.