com.go.trove.io
Class FileByteData

java.lang.Object
  |
  +--com.go.trove.io.FileByteData
All Implemented Interfaces:
ByteData
Direct Known Subclasses:
FileByteData

public class FileByteData
extends java.lang.Object
implements ByteData

A ByteData implementation that reads the contents of a file.

Version:
19 , 00/12/06
Author:
Brian S O'Neill

Constructor Summary
FileByteData(java.io.File file)
           
 
Method Summary
protected  void finalize()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileByteData

public FileByteData(java.io.File file)
Method Detail

getByteCount

public long getByteCount()
                  throws java.io.IOException
Description copied from interface: ByteData
Return the amount of bytes that will be written by the writeTo method.
Specified by:
getByteCount in interface ByteData

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Description copied from interface: ByteData
Writes all the bytes to the given OutputStream.
Specified by:
writeTo in interface ByteData

reset

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

finalize

protected final void finalize()
                       throws java.io.IOException
Overrides:
finalize in class java.lang.Object