Class JSci.io.TextFileOutputStream
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.io.TextFileOutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----java.io.FileOutputStream
|
+----JSci.io.TextFileOutputStream
- public final class TextFileOutputStream
- extends FileOutputStream
Text file output stream, writes data text files.
-
TextFileOutputStream(File, char)
- Creates a text output file with the specified File object.
-
TextFileOutputStream(String, char)
- Creates a text output file with the specified system dependent file name.
-
writeData(double[][])
- Writes an array of data.
-
writeMatrix(DoubleMatrix)
- Writes a matrix.
TextFileOutputStream
public TextFileOutputStream(String name,
char ch) throws IOException
- Creates a text output 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.
TextFileOutputStream
public TextFileOutputStream(File file,
char ch) throws IOException
- Creates a text output file with the specified File object.
- Parameters:
- file - the file to be opened for writing
- ch - the character that delimits data columns
- Throws: IOException
- If the file is not found.
writeData
public void writeData(double data[][]) throws IOException
- Writes an array of data.
- Parameters:
- data - the data to be written
writeMatrix
public void writeMatrix(DoubleMatrix matrix) throws IOException
- Writes a matrix.
- Parameters:
- matrix - the matrix to be written
All Packages Class Hierarchy This Package Previous Next Index