public class

HeapResource

extends Object
implements Resource
java.lang.Object
   ↳ org.apache.http.impl.client.cache.HeapResource

Class Overview

Cache resource backed by a byte array on the heap.

Summary

Public Constructors
HeapResource(byte[] b)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.client.cache.Resource

Public Constructors

public HeapResource (byte[] b)

Public Methods

public void dispose ()

Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.

public InputStream getInputStream ()

Returns an InputStream from which the response body can be read.

public long length ()

Returns the length in bytes of the response body.