Class HeapResource
java.lang.Object
org.apache.http.impl.client.cache.HeapResource
- All Implemented Interfaces:
Serializable, Resource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.Returns anInputStreamfrom which the response body can be read.longlength()Returns the length in bytes of the response body.
-
Constructor Details
-
HeapResource
public HeapResource(byte[] b)
-
-
Method Details
-
getInputStream
Description copied from interface:ResourceReturns anInputStreamfrom which the response body can be read.- Specified by:
getInputStreamin interfaceResource
-
length
-
dispose
-