Class HeapResource
- java.lang.Object
-
- org.apache.http.impl.client.cache.HeapResource
-
-
Constructor Summary
Constructors Constructor Description HeapResource(byte[] b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.java.io.InputStream
getInputStream()
Returns anInputStream
from which the response body can be read.long
length()
Returns the length in bytes of the response body.
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:Resource
Returns anInputStream
from which the response body can be read.- Specified by:
getInputStream
in interfaceResource
-
length
public long length()
Description copied from interface:Resource
Returns the length in bytes of the response body.
-
-