    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.

##

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

##

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

##

TextReader

     public TextReader(InputStream stream)

  Reads text data from an input stream.

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.

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.

##

read

     public int read() throws IOException

  Read a single character.

  Throws: IOException
    If an I/O error occurs
  Overrides:
    read in class InputStreamReader

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