|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.util.ReadFile
Class for reading ascii lines in a file
Field Summary | |
(package private) int |
ctline
|
(package private) java.io.BufferedReader |
rdr
|
Constructor Summary | |
ReadFile()
enpty constructor |
|
ReadFile(java.lang.String filename)
Constructor with a filename. |
Method Summary | |
void |
close()
Closes the file |
java.lang.String |
getLine()
Reads a line. |
int |
lineno()
Returns the number of the current line |
void |
open(java.lang.String filename)
opend a ReadFile object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.io.BufferedReader rdr
int ctline
Constructor Detail |
public ReadFile()
public ReadFile(java.lang.String filename) throws java.io.IOException, java.io.FileNotFoundException, java.net.MalformedURLException
filename
- nale of the file to open. If the filename is null or
an empty string the the standard input is used.Method Detail |
public void open(java.lang.String filename) throws java.io.IOException, java.io.FileNotFoundException, java.net.MalformedURLException
filename
- name of the file to open. If the filename is null or
an empty string the the standard input is used.
java.io.IOException
java.io.FileNotFoundException
java.net.MalformedURLException
public java.lang.String getLine() throws java.io.IOException
java.io.IOException
public int lineno()
public void close() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |