org.apache.http.impl.client.cache
Class FileResourceFactory
java.lang.Object
org.apache.http.impl.client.cache.FileResourceFactory
- All Implemented Interfaces:
- ResourceFactory
@Immutable
public class FileResourceFactory
- extends Object
- implements ResourceFactory
Generates Resource
instances whose body is stored in a temporary file.
- Since:
- 4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileResourceFactory
public FileResourceFactory(File cacheDir)
generate
public Resource generate(String requestId,
InputStream instream,
InputLimit limit)
throws IOException
- Specified by:
generate
in interface ResourceFactory
- Throws:
IOException
copy
public Resource copy(String requestId,
Resource resource)
throws IOException
- Specified by:
copy
in interface ResourceFactory
- Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.