RESOURCE - the type of the associated resourcepublic class GCUBEWSFields2FilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource> extends GCUBEWSFilePersistenceDelegate<RESOURCE>
Serializable objects, plus the standard RPs| Modifier and Type | Class and Description |
|---|---|
static interface |
GCUBEWSFields2FilePersistenceDelegate.WSFieldsSerializable
Enable serialization/deserialization of an arbitrary list of objects using the
GCUBEWSFields2FilePersistenceDelegate |
ctxt, WSRESOURCE_FILE_SUFFIXlogger| Constructor and Description |
|---|
GCUBEWSFields2FilePersistenceDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onLoad(RESOURCE resource,
ObjectInputStream stream)
Deserialises the state of resource from a
ObjectInputStream. |
protected void |
onStore(RESOURCE resource,
ObjectOutputStream stream)
Serialises the state of a resource into a
ObjectOutputStream. |
getFileFromResource, getIDFromFileName, getSuffix, initialisegetResourceIdentifiers, getStorageRoot, onLoad, onRemove, onStoreload, remove, storepublic GCUBEWSFields2FilePersistenceDelegate()
protected void onLoad(RESOURCE resource, ObjectInputStream stream) throws Exception
ObjectInputStream.
Extends in accordance with resource semantics.onLoad in class GCUBEWSFilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>stream - the stream.Exception - if the stream could not be processed.protected void onStore(RESOURCE resource, ObjectOutputStream stream) throws Exception
ObjectOutputStream.
Extend in accordance with resource semantics.onStore in class GCUBEWSFilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>stream - the stream.Exception - if the stream could not be processed.Copyright © 2015. All Rights Reserved.