rabbit.proxy
Class CacheStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FileInputStream
          extended byrabbit.proxy.CacheStream

public class CacheStream
extends java.io.FileInputStream

This class reads data from a cachefile.


Constructor Summary
CacheStream(NCacheEntry entry)
          Create a new CacheStream from the given NCacheEntry
 
Methods inherited from class java.io.FileInputStream
available, close, getChannel, getFD, read, read, read, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheStream

public CacheStream(NCacheEntry entry)
            throws java.io.FileNotFoundException
Create a new CacheStream from the given NCacheEntry

Parameters:
entry - the NCacheEntry to read data from.
Throws:
java.io.FileNotFoundException - if the cachefile is not found.