| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.util.CachedObject
public class CachedObject
A cache for an object that was loaded from a file or url. The cache can be made persistent on disk (uses the filename). For a new cache the object to be cached can be set.
| Constructor Summary | |
|---|---|
| CachedObject(String filename,
             long lastmodified,
             Serializable cachedobject)Create a new file cache. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CachedObject(String filename,
                    long lastmodified,
                    Serializable cachedobject)
| Method Detail | 
|---|
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| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.