public class Input
extends java.lang.Object
BufferedReader
wrapperConstructor and Description |
---|
Input(java.lang.String filePath)
Initializes the Class and opens a stream to the file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Wrapper for closing the reader
|
java.lang.String |
readLine()
|
java.lang.String |
toString()
|
public Input(java.lang.String filePath) throws java.io.FileNotFoundException
filePath
- path to filejava.io.FileNotFoundException
- when the file path is incorrect
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
- if an I/O error occursBufferedReader.readLine(boolean)
public void close() throws java.io.IOException
java.io.IOException
- if an I/O error occursBufferedReader.close()
public java.lang.String toString()
toString
in class java.lang.Object