org.apache.http.impl.client.cache
Class HeapResourceFactory

java.lang.Object
  extended by 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

Constructor Summary
HeapResourceFactory()
           
 
Method Summary
 Resource copy(String requestId, Resource resource)
           
 Resource generate(String requestId, InputStream instream, InputLimit limit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapResourceFactory

public HeapResourceFactory()
Method Detail

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.