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

java.lang.Object
  extended by org.apache.http.impl.client.cache.HeapResource
All Implemented Interfaces:
Serializable, Resource

@Immutable
public class HeapResource
extends Object
implements Resource

Cache resource backed by a byte array on the heap.

Since:
4.1
See Also:
Serialized Form

Constructor Summary
HeapResource(byte[] b)
           
 
Method Summary
 void dispose()
           
 InputStream getInputStream()
           
 long length()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapResource

public HeapResource(byte[] b)
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface Resource

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.