Logo Search packages:      
Sourcecode: libloader version File versions  Download package

org::jfree::resourceloader::cache::CachingResourceData Class Reference

Inheritance diagram for org::jfree::resourceloader::cache::CachingResourceData:


List of all members.

Detailed Description

A very simple implementation which is suitable for smaller objects. The complete data is read into memory.

Thomas Morgner

Definition at line 49 of file CachingResourceData.java.

Public Member Functions

 CachingResourceData (final ResourceData data)
Object getAttribute (String key)
synchronized Object getAttribute (final String key)
ResourceKey getKey ()
int getResource (ResourceManager caller, byte[] target, int offset, int length) throws ResourceLoadingException
byte[] getResource (ResourceManager caller) throws ResourceLoadingException
synchronized int getResource (final ResourceManager caller, final byte[] target, final int offset, final int length) throws ResourceLoadingException
synchronized byte[] getResource (final ResourceManager caller) throws ResourceLoadingException
InputStream getResourceAsStream (ResourceManager caller) throws ResourceLoadingException
InputStream getResourceAsStream (final ResourceManager caller) throws ResourceLoadingException
long getVersion (ResourceManager caller) throws ResourceLoadingException
long getVersion (final ResourceManager caller) throws ResourceLoadingException

Static Public Member Functions

static ResourceData createCached (final ResourceData data)

Static Public Attributes

static final String CONTENT_LENGTH = "content-length"
static final String CONTENT_TYPE = "content-type"
static final String FILENAME = "filename"

Private Attributes

HashMap attributes
ResourceData data
byte[] rawData

Static Private Attributes

static final int CACHE_THRESHOLD = 512*1024

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index