All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.io.TextReader

java.lang.Object
   |
   +----java.io.Reader
           |
           +----java.io.InputStreamReader
                   |
                   +----JSci.io.TextReader

public final class TextReader
extends InputStreamReader
Text reader, reads data text files/streams. This class uses buffered I/O.


Constructor Index

 o TextReader(File)
Reads a text file with the specified File object.
 o TextReader(InputStream)
Reads text data from an input stream.
 o TextReader(String)
Reads a text file with the specified system dependent file name.

Method Index

 o read()
Read a single character.
 o readArray()
Reads data to an array.

Constructors

 o TextReader
 public TextReader(InputStream stream)
Reads text data from an input stream.

 o TextReader
 public TextReader(String name) throws FileNotFoundException
Reads a text file with the specified system dependent file name.

Parameters:
name - the system dependent file name
Throws: FileNotFoundException
If the file is not found.
 o TextReader
 public TextReader(File file) throws FileNotFoundException
Reads a text file with the specified File object.

Parameters:
file - the file to be opened for reading
Throws: FileNotFoundException
If the file is not found.

Methods

 o read
 public int read() throws IOException
Read a single character.

Throws: IOException
If an I/O error occurs
Overrides:
read in class InputStreamReader
 o readArray
 public double[][] readArray() throws IOException
Reads data to an array.

Throws: IOException
If an I/O error occurs

All Packages  Class Hierarchy  This Package  Previous  Next  Index