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, setSemanticTypes
public RawDataCacheObject()
public RawDataCacheObject(java.lang.String name, KeplerLSID lsid)
public java.lang.Object getObject()
getObject
in interface CacheObjectInterface
getObject
in class CacheObject
public void setData(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public java.io.InputStream getDataAsStream() throws CacheException
CacheException
public void objectAdded()
objectAdded
in interface CacheObjectInterface
objectAdded
in class CacheObject
public void objectRemoved()
objectRemoved
in interface CacheObjectInterface
objectRemoved
in class CacheObject
public void objectPurged()
objectPurged
in interface CacheObjectInterface
objectPurged
in class CacheObject
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException