|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.client.cache.HeapResource
@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()
ResourceInputStream from which the response
body can be read.
getInputStream in interface Resourcepublic long length()
Resource
length in interface Resourcepublic void dispose()
Resource
dispose in interface Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||