|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.client.cache.HeapResource
@Contract(threading=IMMUTABLE) public class HeapResource
Cache resource backed by a byte array on the heap.
Constructor Summary | |
---|---|
HeapResource(byte[] b)
|
Method Summary | |
---|---|
void |
dispose()
Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed. |
InputStream |
getInputStream()
Returns an InputStream from which the response
body can be read. |
long |
length()
Returns the length in bytes of the response body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeapResource(byte[] b)
Method Detail |
---|
public InputStream getInputStream()
Resource
InputStream
from which the response
body can be read.
getInputStream
in interface Resource
public long length()
Resource
length
in interface Resource
public void dispose()
Resource
dispose
in interface Resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |