org.xwt.util
Class CachedInputStream
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedInputStream
public CachedInputStream(java.io.InputStream is)
CachedInputStream
public CachedInputStream(java.io.InputStream is,
java.io.File diskCache)
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
grow
public void grow(int newLength)