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.

Constructor Index

 o TextFileOutputStream(File, char)
Creates a text output file with the specified File object.
 o TextFileOutputStream(String, char)
Creates a text output file with the specified system dependent file name.

Method Index

 o writeData(double[][])
Writes an array of data.
 o writeMatrix(DoubleMatrix)
Writes a matrix.

Constructors

 o 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.
 o 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.

Methods

 o writeData
  public void writeData(double data[][]) throws IOException
Writes an array of data.
Parameters:
data - the data to be written
 o 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