public class

FileResource

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

Class Overview

Cache resource backed by a file.

Summary

Public Constructors
FileResource(File file)
Public Methods
synchronized void dispose()
Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.
synchronized InputStream getInputStream()
Returns an InputStream from which the response body can be read.
synchronized 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 FileResource (File file)

Public Methods

public synchronized void dispose ()

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

public synchronized InputStream getInputStream ()

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

Throws
IOException

public synchronized long length ()

Returns the length in bytes of the response body.