|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.content.source.ContentSource
de.enough.polish.content.source.impl.ResourceContentSource
public class ResourceContentSource
A sample HttpContentSource that receives byte[]
| Field Summary | |
|---|---|
static String |
PREFIX
The prefix for this kind of source |
| Constructor Summary | |
|---|---|
ResourceContentSource(String id)
Creates a new resource content source |
|
| Method Summary | |
|---|---|
protected void |
destroy(StorageReference reference)
Destroys the content specified by the storage reference |
protected Object |
load(ContentDescriptor descriptor)
Load the specified content by the use of the content descriptor. |
protected Object |
load(StorageReference reference)
Load the specified content by the use of the storage reference. |
protected Object |
store(ContentDescriptor descriptor,
Object data)
Stores the specified content |
protected Object[] |
storeContentAndGetDataSize(ContentDescriptor descriptor,
Object data)
Stores an object and returns a reference to it along with its stored size in one single step. |
| Methods inherited from class de.enough.polish.content.source.ContentSource |
|---|
addContentTransform, attachSource, clean, clean, destroyContent, detachSource, getFilter, getSize, getStorageIndex, loadContent, loadContent, loadContentData, removeContentTransform, setContentFilter, shutdown, storeContent, sweep, toString, transformContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PREFIX
| Constructor Detail |
|---|
public ResourceContentSource(String id)
id - the unique ID of this source| Method Detail |
|---|
protected void destroy(StorageReference reference)
throws IOException
ContentSource
destroy in class ContentSourcereference - the storage reference
IOException - if an error occurs (obviously)
protected Object load(ContentDescriptor descriptor)
throws IOException
ContentSource
load in class ContentSourcedescriptor - the content descriptor
IOException - if an error occurs (obviously)
protected Object load(StorageReference reference)
throws IOException
ContentSource
load in class ContentSourcereference - the storage reference
IOException - if an error occurs (obviously)
protected Object store(ContentDescriptor descriptor,
Object data)
throws IOException
ContentSource
store in class ContentSourcedescriptor - the content descriptordata - the data
IOException - if an error occurs (obviously)
protected Object[] storeContentAndGetDataSize(ContentDescriptor descriptor,
Object data)
throws IOException
ContentSource
storeContentAndGetDataSize in class ContentSourcedescriptor - the content descriptordata - the data that needs to be stored
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||