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

Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes

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

Inheritance diagram for org::jfree::resourceloader::cache::CachingResourceData:
Inheritance graph
[legend]
Collaboration diagram for org::jfree::resourceloader::cache::CachingResourceData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CachingResourceData (final ResourceData data)
synchronized Object getAttribute (final String key)
Object getAttribute (String key)
ResourceKey getKey ()
synchronized int getResource (final ResourceManager caller, final byte[] target, final int offset, final int length) throws ResourceLoadingException
byte[] getResource (ResourceManager caller) throws ResourceLoadingException
int getResource (ResourceManager caller, byte[] target, int offset, 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

Detailed Description

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

Author:
Thomas Morgner

Definition at line 49 of file CachingResourceData.java.


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

Generated by  Doxygen 1.6.0   Back to index