All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.ScanList

java.lang.Object
   |
   +----JObserve.ScanList

public class ScanList
extends Object
Read/write scan information from/to text file utility class Parses information from an ascii file and creates a linked list. This class is never instantiated and consists entirely of static functions.


Constructor Index

 o ScanList()

Method Index

 o ReadScanList(ListBlock, String, Observation)
Read Scan list Note: this will work for default setups as well as a schedule and user source list.
 o WriteScanList(ListBlock, String, Observation)
Write Scan list Note: this will work for default setups as well as a schedule and user source list.
 o WriteTextLine(BufferedWriter, String)
Write text line Write string and line termination.

Constructors

 o ScanList
 public ScanList()

Methods

 o ReadScanList
 public static void ReadScanList(ListBlock List,
                                 String file,
                                 Observation Obs) throws IllegalArgumentException, IOException
Read Scan list Note: this will work for default setups as well as a schedule and user source list. The NRAODefault list may be read from the classpath.

Parameters:
- ListBlock the list to be added to
- String the name of the file
- Observation the associated observation (schedule).
Throws: FileNotFoundException
if can't find.
Throws: IOException
if problem opening, reading or closing
 o WriteScanList
 public static void WriteScanList(ListBlock List,
                                  String file,
                                  Observation Obs) throws IllegalArgumentException, IOException
Write Scan list Note: this will work for default setups as well as a schedule and user source list.

Parameters:
- ListBlock the list to be added to
- String the name of the file
- Observation the associated observation (schedule).
Throws: FileNotFoundException
if can't find.
Throws: IOException
if problem opening, reading or closing
 o WriteTextLine
 protected static void WriteTextLine(BufferedWriter outFile,
                                     String Line) throws IOException
Write text line Write string and line termination.

Parameters:
BufferedWriter - Output stream
String - String to write
Throws: IOException
if problem Writing

All Packages  Class Hierarchy  This Package  Previous  Next  Index