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