org.stellarium.data
Class DataFileUtil

java.lang.Object
  extended by org.stellarium.data.DataFileUtil

public class DataFileUtil
extends java.lang.Object

Utility class for all flat file manipulation in Stellarium

Author:
Fred Simon

Constructor Summary
DataFileUtil()
           
 
Method Summary
static java.util.List<java.lang.String> getLines(java.lang.String fileName, java.lang.String fileDescription, boolean exceptionOnOpen)
          Extract all the lines of a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFileUtil

public DataFileUtil()
Method Detail

getLines

public static java.util.List<java.lang.String> getLines(java.lang.String fileName,
                                                        java.lang.String fileDescription,
                                                        boolean exceptionOnOpen)
                                                 throws StellariumException
Extract all the lines of a file

Parameters:
fileName - - the path of the file to open
fileDescription - - the message if file cannot be read or exception occurs
exceptionOnOpen -
Returns:
null if cannot open file, or an array of all the lines
Throws:
StellariumException - If exception during the file reading, but not during file opening