public class RawDataCacheObject extends CacheObject
_attributes, _lsid, _name, _semanticTypes| Constructor and Description |
|---|
RawDataCacheObject() |
RawDataCacheObject(java.lang.String name,
KeplerLSID lsid)
construct a new CacheObject
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getDataAsStream()
return the data as a stream
|
java.lang.Object |
getObject()
This returns a file object pointing to the data file.
|
void |
objectAdded()
call back for when this object is added to the cache
|
void |
objectPurged()
call back for when this object is purged by CacheManager
|
void |
objectRemoved()
call back for when this object is removed by the user
|
void |
readExternal(java.io.ObjectInput in)
deserialize this object
|
void |
setData(java.io.InputStream is)
set the data file that is associated with this RawDataCacheObject
|
void |
writeExternal(java.io.ObjectOutput out)
serialize this object
|
addAttribute, getAttribute, getAttributeNames, getLSID, getName, getSemanticTypes, removeAttribute, setLSID, setName, setSemanticTypespublic RawDataCacheObject()
public RawDataCacheObject(java.lang.String name, KeplerLSID lsid)
public java.lang.Object getObject()
getObject in interface CacheObjectInterfacegetObject in class CacheObjectpublic void setData(java.io.InputStream is) throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getDataAsStream() throws CacheException
CacheExceptionpublic void objectAdded()
objectAdded in interface CacheObjectInterfaceobjectAdded in class CacheObjectpublic void objectRemoved()
objectRemoved in interface CacheObjectInterfaceobjectRemoved in class CacheObjectpublic void objectPurged()
objectPurged in interface CacheObjectInterfaceobjectPurged in class CacheObjectpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException