@CodeReview(reviewer="Jonathan McClain", date="2006-05-19", changesNeeded=false, comments="Looks fine.") public class MatrixWriter extends java.lang.Object
Constructor and Description |
---|
MatrixWriter(java.io.Writer writer)
Creates a new instance of MatrixWriter
|
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
getWriter()
Getter for writer
|
void |
setWriter(java.io.Writer writer)
Setter for writer
|
void |
write(Matrix matrix)
Writes the given matrix to the Java-based writer
|
public MatrixWriter(java.io.Writer writer)
writer
- Java-based writer to spew out stringspublic void write(Matrix matrix) throws java.io.IOException
matrix
- Matrix to write to the Java-based writerjava.io.IOException
- on bad writepublic java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
writer
- Java-based writer to spew out strings