gov.sandia.cognition.math.matrix
Class MatrixWriter

java.lang.Object
  extended by gov.sandia.cognition.math.matrix.MatrixWriter

@CodeReview(reviewer="Jonathan McClain",
            date="2006-05-19",
            changesNeeded=false,
            comments="Looks fine.")
public class MatrixWriter
extends Object

Writes a Matrix to a Java-based Writer (files, etc.)

Since:
1.0
Author:
Kevin R. Dixon

Constructor Summary
MatrixWriter(Writer writer)
          Creates a new instance of MatrixWriter
 
Method Summary
 Writer getWriter()
          Getter for writer
 void setWriter(Writer writer)
          Setter for writer
 void write(Matrix matrix)
          Writes the given matrix to the Java-based writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixWriter

public MatrixWriter(Writer writer)
Creates a new instance of MatrixWriter

Parameters:
writer - Java-based writer to spew out strings
Method Detail

write

public void write(Matrix matrix)
           throws IOException
Writes the given matrix to the Java-based writer

Parameters:
matrix - Matrix to write to the Java-based writer
Throws:
IOException - on bad write

getWriter

public Writer getWriter()
Getter for writer

Returns:
Java-based writer to spew out strings

setWriter

public void setWriter(Writer writer)
Setter for writer

Parameters:
writer - Java-based writer to spew out strings