org.backsource.utils.io
Class FileCachedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.BufferedInputStream
              extended byorg.backsource.utils.io.CachedInputStream
                  extended byorg.backsource.utils.io.FileCachedInputStream

public class FileCachedInputStream
extends CachedInputStream

Cached input stream that reads from a possibly temp file.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FileCachedInputStream(java.io.File file)
           
FileCachedInputStream(FileCachedOutputStream cout)
          Get a CachedInputStream from the CachedOutputStream.
 
Method Summary
 void rewind()
          Resets all buffers and opens a new FileInputStream.
 
Methods inherited from class org.backsource.utils.io.CachedInputStream
close, close
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCachedInputStream

public FileCachedInputStream(FileCachedOutputStream cout)
                      throws java.io.IOException
Get a CachedInputStream from the CachedOutputStream.


FileCachedInputStream

public FileCachedInputStream(java.io.File file)
                      throws java.io.IOException
Method Detail

rewind

public void rewind()
            throws java.io.IOException
Resets all buffers and opens a new FileInputStream.

Specified by:
rewind in class CachedInputStream
Throws:
java.io.IOException


Copyright © 2000-2004 Backsource. All Rights Reserved.