|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
ice.net.CachedInputStream
| Field Summary | |
protected byte[] |
cache
|
| Constructor Summary | |
CachedInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
Deprecated. As of 1.6.0, replaced by . |
|
CachedInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
|
|
| Method Summary | |
protected void |
addCache(byte theData)
Helper method which add the supplied data to the internal cache array. |
protected void |
addCache(byte[] dataIn,
int dataOffset,
int dataLength)
Helper method which add the supplied data to the internal cache array. |
int |
available()
Returns how many bytes are avaliable before blocking occurs. |
void |
close()
Closes the Stream. |
int |
read()
Reads the next byte of data from this input stream |
int |
read(byte[] b,
int off,
int len)
Reads up to b.length bytes of data from this input stream into an array of bytes. |
protected void |
submitToCache()
Submits the complete downloaded data object to the cache. |
| Methods inherited from class java.io.InputStream |
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] cache
| Constructor Detail |
public CachedInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
CachedInputStream(HttpURLConnection, CacheManager, Connection, byte[], int, int).
public CachedInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
| Method Detail |
protected void submitToCache()
throws ICEException
ICEException
protected void addCache(byte[] dataIn,
int dataOffset,
int dataLength)
throws ICEException
ICEException
protected void addCache(byte theData)
throws ICEException
ICEException
public int available()
throws IOException
IOException
public void close()
throws IOException
IOException
public int read()
throws IOException
IOException
public int read(byte[] b,
int off,
int len)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||