|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdev.niodev.ConfigReader
public class ConfigReader
This class is a utiliy class that is used to read the start-up information from a configuration file. The users of the mpjdev do not have to deal with this file.
Constructor Summary | |
---|---|
ConfigReader(java.lang.String fileName)
Constructor of this utility class |
Method Summary | |
---|---|
void |
close()
Close all the streams. |
static void |
main(java.lang.String[] args)
Just for testing this class ! ! ! |
java.lang.String |
readIntAsString()
Reads integer as a string |
java.lang.String |
readLine()
Reads line from the configuration file. |
java.lang.String |
readNoOfProc()
Read the number of processes mentioned in the configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigReader(java.lang.String fileName) throws java.io.IOException, java.io.FileNotFoundException, java.net.MalformedURLException
fileName
- String The name of the configuration file. This can be on the local file system or
on some server accessible via http.
java.io.IOException
- If some I/O error happens.
java.io.FileNotFoundException
- If the file is not found.
java.net.MalformedURLException
- If the http URL is malformed.Method Detail |
---|
public java.lang.String readNoOfProc() throws java.io.IOException
java.io.IOException
- If some I/O error occurspublic java.lang.String readIntAsString() throws java.io.IOException
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
public void close()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |