Package sunlabs.brazil.session
Interface PropertiesCacheManager.Saveable
-
- All Known Implementing Classes:
ListTemplate.MyList
,XmlTree
- Enclosing class:
- PropertiesCacheManager
public static interface PropertiesCacheManager.Saveable
This interface allows for persistence of non-properties session objects. These methods should behave precisely like the corrosponding methods of the Properties class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
The current object state is the "default"; "save" does not need to write out any state.void
load(java.io.InputStream in)
Recreate the object from the ascii representation stored as a Properties format file.void
save(java.io.OutputStream out, java.lang.String header)
Create an ascii representation of this object in a Java Properties format.
-
-
-
Method Detail
-
load
void load(java.io.InputStream in) throws java.io.IOException
Recreate the object from the ascii representation stored as a Properties format file.- Throws:
java.io.IOException
-
save
void save(java.io.OutputStream out, java.lang.String header) throws java.io.IOException
Create an ascii representation of this object in a Java Properties format.- Throws:
java.io.IOException
-
isEmpty
boolean isEmpty()
The current object state is the "default"; "save" does not need to write out any state.
-
-