|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvsp.readConfig.ReadConfig
public abstract class ReadConfig
Abstract class for reading config file
Field Summary | |
---|---|
private BufferedReader |
bufferedReader
Reader for config file |
Constructor Summary | |
---|---|
ReadConfig(String fileName)
Creates new reader and opens file |
Method Summary | |
---|---|
protected void |
finalize()
Close file, when disposing object |
abstract Config |
read()
Read config file |
private Config |
readHead(Config config)
Read head from file |
protected ConfigExp |
readHead(ConfigExp config)
Read head from config file for exp. |
protected ConfigGauss |
readHead(ConfigGauss config)
Read head from config file for Gauss. |
protected String |
readLine()
Reads next line from config file, which is not empty and not a comment |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private BufferedReader bufferedReader
Constructor Detail |
---|
public ReadConfig(String fileName) throws FileNotFoundException
fileName
-
FileNotFoundException
Method Detail |
---|
protected String readLine() throws IOException
IOException
protected ConfigExp readHead(ConfigExp config) throws NumberFormatException, IOException
config
-
NumberFormatException
IOException
protected ConfigGauss readHead(ConfigGauss config) throws NumberFormatException, IOException
config
-
NumberFormatException
IOException
private Config readHead(Config config) throws NumberFormatException, IOException
config
-
NumberFormatException
IOException
public abstract Config read() throws NumberFormatException, IOException
NumberFormatException
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |