com.go.trove.io
Interface ByteData

All Known Subinterfaces:
ByteBuffer, ByteBuffer, ByteData, CharToByteBuffer, CharToByteBuffer
All Known Implementing Classes:
ArrayByteData, FileByteData

public interface ByteData

Simple interface for writing a list of bytes to an OutputStream.

Version:
14 , 00/12/05
Author:
Brian S O'Neill

Method Summary
 long getByteCount()
          Return the amount of bytes that will be written by the writeTo method.
 void reset()
          Reset any transient data stored in this ByteData.
 void writeTo(java.io.OutputStream out)
          Writes all the bytes to the given OutputStream.
 

Method Detail

getByteCount

public long getByteCount()
                  throws java.io.IOException
Return the amount of bytes that will be written by the writeTo method.

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Writes all the bytes to the given OutputStream.

reset

public void reset()
           throws java.io.IOException
Reset any transient data stored in this ByteData. A call to getByteCount or writeTo will force this data to be restored.