org.xwt.util
Class CachedInputStream

java.lang.Object
  extended byorg.xwt.util.CachedInputStream

public class CachedInputStream
extends java.lang.Object

Wraps around an InputStream, caching the stream in a byte[] as it is read and permitting multiple simultaneous readers


Constructor Summary
CachedInputStream(java.io.InputStream is)
           
CachedInputStream(java.io.InputStream is, java.io.File diskCache)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 void grow(int newLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedInputStream

public CachedInputStream(java.io.InputStream is)

CachedInputStream

public CachedInputStream(java.io.InputStream is,
                         java.io.File diskCache)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

grow

public void grow(int newLength)