public class CachedObject
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.io.Serializable |
cachedobject
The cached object.
|
protected java.lang.String |
filename
The filename of the cache.
|
protected long |
lastmodified
The last modified date.
|
Constructor and Description |
---|
CachedObject(java.lang.String filename,
long lastmodified,
java.io.Serializable cachedobject)
Create a new file cache.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename()
Get the filename.
|
long |
getLastModified()
Get the last modified date.
|
java.io.Serializable |
getObject()
Get the cached object
|
void |
persist()
Persist the cached object.
|
void |
setFilename(java.lang.String filename)
Set the filename.
|
void |
setLastModified(long lastmodified)
Set the last modified date.
|
void |
setObject(java.io.Serializable cachedobject)
Set the cached object.
|
protected java.io.Serializable cachedobject
protected java.lang.String filename
protected long lastmodified
public CachedObject(java.lang.String filename, long lastmodified, java.io.Serializable cachedobject)
public void setObject(java.io.Serializable cachedobject)
cachedobject
- The cached object.public java.io.Serializable getObject()
public long getLastModified()
public void setLastModified(long lastmodified)
lastmodified
- The last modified date.public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- The file name.public void persist() throws java.io.IOException
java.io.IOException