public interface

Resource

implements Serializable
org.apache.http.client.cache.Resource
Known Indirect Subclasses

Class Overview

Represents a disposable system resource used for handling cached response bodies.

Summary

Public Methods
abstract void dispose()
Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.
abstract InputStream getInputStream()
Returns an InputStream from which the response body can be read.
abstract long length()
Returns the length in bytes of the response body.

Public Methods

public abstract void dispose ()

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

public abstract InputStream getInputStream ()

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

Throws
IOException

public abstract long length ()

Returns the length in bytes of the response body.