epfl.io
Interface VectorWriter

All Known Implementing Classes:
TagVectorWriter, VectorPrinter

public interface VectorWriter

A double vector output stream


Method Summary
 void close()
          Closes the stream
 void flush()
          Flushes the stream
 int size()
          Returns the stream size (vector size)
 void write(double[] v)
          Writes a vector in stream
 

Method Detail

write

public void write(double[] v)
           throws java.io.IOException
Writes a vector in stream
Parameters:
v - vector to write; the vector is truncated if necessary, or completed with 0.0
Throws:
java.io.IOException - if an IO error occurs

size

public int size()
Returns the stream size (vector size)

flush

public void flush()
           throws java.io.IOException
Flushes the stream
Throws:
java.io.IOException - if an IO error occurs

close

public void close()
           throws java.io.IOException
Closes the stream
Throws:
java.io.IOException - if an IO error occurs