|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.client.cache.FileResource
@Contract(threading=SAFE) public class FileResource
Cache resource backed by a file.
Constructor Summary | |
---|---|
FileResource(File file)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileResource(File file)
Method Detail |
---|
public InputStream getInputStream() throws IOException
Resource
InputStream
from which the response
body can be read.
getInputStream
in interface Resource
IOException
public long length()
Resource
length
in interface Resource
public void dispose()
Resource
dispose
in interface Resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |