Class Overview
Cache resource backed by a file.
Summary
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.apache.http.client.cache.Resource
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 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.
public
synchronized
long
length
()
Returns the length in bytes of the response body.