org.apache.http.impl.client.cache
Class HeapResourceFactory
java.lang.Object
org.apache.http.impl.client.cache.HeapResourceFactory
- All Implemented Interfaces:
- ResourceFactory
@Immutable
public class HeapResourceFactory
- extends Object
- implements ResourceFactory
Generates Resource
instances stored entirely in heap.
- Since:
- 4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeapResourceFactory
public HeapResourceFactory()
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-2011 The Apache Software Foundation. All Rights Reserved.