org.apache.http.impl.client.cache
Class FileResource
java.lang.Object
org.apache.http.impl.client.cache.FileResource
- All Implemented Interfaces:
- Serializable, Resource
@ThreadSafe
public class FileResource
- extends Object
- implements Resource
Cache resource backed by a file.
- Since:
- 4.1
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileResource
public FileResource(File file)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface Resource
- Throws:
IOException
length
public long length()
- Specified by:
length
in interface Resource
dispose
public void dispose()
- Specified by:
dispose
in interface Resource
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.