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.
-
TextFileInputStream(File)
- Opens a text input file with the specified File object.
-
TextFileInputStream(String)
- Opens a text input file with the specified system dependent file name.
-
readData(double[][])
- Reads data into an array.
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.
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.
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