@CodeReview(reviewer="Jonathan McClain", date="2006-05-19", changesNeeded=false, comments="Looks fine.") public class MatrixReader extends java.lang.Object
Constructor and Description |
---|
MatrixReader(java.io.Reader reader)
Creates a new instance of MatrixReader
|
Modifier and Type | Method and Description |
---|---|
protected VectorReader |
getInternalReader()
Getter for internalReader
|
Matrix |
read()
Reads the next Matrix found in the specified Reader
|
protected void |
setInternalReader(VectorReader internalReader)
Setter for internalReader
|
public MatrixReader(java.io.Reader reader)
reader
- Java reader stream from which to pull the dataprotected VectorReader getInternalReader()
protected void setInternalReader(VectorReader internalReader)
internalReader
- internal reader that reads a vector of numbers
off of each linepublic Matrix read() throws java.io.IOException
java.io.IOException
- If an invalid reader is given, or no Matrix is found