@CodeReview(reviewer="Jonathan McClain", date="2006-05-22", changesNeeded=false, comments="Looks fine.") public class VectorWriter extends java.lang.Object
Constructor and Description |
---|
VectorWriter(java.io.Writer writer)
Creates a new instance of VectorWriter
|
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
getWriter()
Getter for writer
|
void |
setWriter(java.io.Writer writer)
Setter for writer
|
void |
write(Vector vector)
Writes the given vector to the Java-based writer
|
void |
writeCollection(java.lang.Iterable<? extends Vector> vectors)
Writes the collection of vectors to the Java-based writer
|
public VectorWriter(java.io.Writer writer)
writer
- Java-based writer to spew out stringspublic void write(Vector vector) throws java.io.IOException
vector
- Vector to write to the Java-based writerjava.io.IOException
- on bad writepublic void writeCollection(java.lang.Iterable<? extends Vector> vectors) throws java.io.IOException
vectors
- Collection of Vectors to writejava.io.IOException
- on bad writepublic java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
writer
- Java-based writer to spew out strings