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.
-
ScanList()
-
-
ReadScanList(ListBlock, String, Observation)
- Read Scan list
Note: this will work for default setups as well as a schedule and user
source list.
-
WriteScanList(ListBlock, String, Observation)
- Write Scan list
Note: this will work for default setups as well as a schedule and user
source list.
-
WriteTextLine(BufferedWriter, String)
- Write text line
Write string and line termination.
ScanList
public ScanList()
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
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
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