|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader java.io.BufferedReader JSci.io.TextReader
public final class TextReader
TextReader: 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.Reader reader)
Reads text data from a reader. |
|
TextReader(java.lang.String name)
Reads a text file with the specified system dependent file name. |
Method Summary | |
---|---|
void |
read(AbstractDoubleMatrix m)
Reads data into a matrix. |
double[][] |
readArray()
Reads data to an array. |
void |
readTable(AbstractDoubleMatrix m)
Reads a (row,column,value) table into a matrix. |
Methods inherited from class java.io.BufferedReader |
---|
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextReader(java.io.Reader reader)
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 double[][] readArray() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public void read(AbstractDoubleMatrix m) throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public void readTable(AbstractDoubleMatrix m) 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 |