|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
java.io.InputStreamReader
JSci.io.TextReader
public final class TextReader
Text reader, reads data text files/streams. This class uses buffered I/O.
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
TextReader(java.io.File file)
Reads a text file with the specified File object. |
|
TextReader(java.io.InputStream stream)
Reads text data from an input stream. |
|
TextReader(java.lang.String name)
Reads a text file with the specified system dependent file name. |
|
| Method Summary | |
|---|---|
int |
read()
Read a single character. |
double[][] |
readArray()
Reads data to an array. |
| Methods inherited from class java.io.InputStreamReader |
|---|
close, getEncoding, read, ready |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextReader(java.io.InputStream stream)
public TextReader(java.lang.String name)
throws java.io.FileNotFoundException
name - the system dependent file name.
java.io.FileNotFoundException - If the file is not found.
public TextReader(java.io.File file)
throws java.io.FileNotFoundException
file - the file to be opened for reading.
java.io.FileNotFoundException - If the file is not found.| Method Detail |
|---|
public int read()
throws java.io.IOException
read in class java.io.InputStreamReaderjava.io.IOException - If an I/O error occurs.
public double[][] readArray()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||