Class JSci.io.TextFileInputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.io.TextFileInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FileInputStream
                   |
                   +----JSci.io.TextFileInputStream

public final class TextFileInputStream
extends FileInputStream
Text file input stream, reads data text files.

Constructor Index

 o TextFileInputStream(File)
Opens a text input file with the specified File object.
 o TextFileInputStream(String)
Opens a text input file with the specified system dependent file name.

Method Index

 o readData(double[][])
Reads data into an array.

Constructors

 o TextFileInputStream
  public TextFileInputStream(String name) throws IOException
Opens a text input file with the specified system dependent file name.
Parameters:
name - the system dependent file name
ch - the character that delimits data columns
Throws: IOException
If the file is not found.
 o TextFileInputStream
  public TextFileInputStream(File file) throws IOException
Opens a text input file with the specified File object.
Parameters:
file - the file to be opened for reading
ch - the character that delimits data columns
Throws: IOException
If the file is not found.

Methods

 o readData
  public void readData(double data[][]) throws IOException
Reads data into an array.
Parameters:
data - an array

All Packages  Class Hierarchy  This Package  Previous  Next  Index