|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.client.cache.FileResource
@ThreadSafe 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
ResourceInputStream from which the response
body can be read.
getInputStream in interface ResourceIOExceptionpublic long length()
Resource
length in interface Resourcepublic void dispose()
Resource
dispose in interface Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||