FileDocCategorySizeDatePackage
CacheRequest.javaAPI DocAndroid 1.5 API2332Wed May 06 22:41:04 BST 2009java.net

CacheRequest

public abstract class CacheRequest extends Object
{@code CacheRequest} is a kind of channel for storing resource data in the {@code ResponseCache}. A protocol handler calls the {@code OutputStream} which is provided by the {@code CacheRequest} object, to store the resource data into the cache. It also allows the user to interrupt and abort the current store operation by calling the method {@code abort}. If an {@code IOException} occurs while reading the response or writing data to the cache, the current cache store operation is abandoned.
see
ResponseCache
since
Android 1.0

Fields Summary
Constructors Summary
public CacheRequest()
This implementation does nothing.

since
Android 1.0

        super();
    
Methods Summary
public abstract voidabort()
Aborts the current cache operation. If an {@code IOException} occurs while reading the response or writing resource data to the cache, the current cache store operation is aborted.

since
Android 1.0

public abstract java.io.OutputStreamgetBody()
Returns an {@code OutputStream} which is used to write the response body.

return
an {@code OutputStream} which is used to write the response body.
throws
IOException if an I/O error is encountered during writing response body operation.
since
Android 1.0