Sun Microsystems Laboratories Experimental Stuff PropertiesCacheManager.Saveable (Brazil Project)

sunlabs.brazil.session
Interface PropertiesCacheManager.Saveable

All Known Implementing Classes:
ListTemplate.MyList, XmlTree
Enclosing interface:
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
 boolean isEmpty()
          The current object state is the "default"; "save" does not need to write out any state.
 void load(InputStream in)
          Recreate the object from the ascii representation stored as a Properties format file.
 void save(OutputStream out, String header)
          Create an ascii representation of this object in a Java Properties format.
 

Method Detail

load

public void load(InputStream in)
          throws IOException
Recreate the object from the ascii representation stored as a Properties format file.

IOException

save

public void save(OutputStream out,
                 String header)
          throws IOException
Create an ascii representation of this object in a Java Properties format.

IOException

isEmpty

public boolean isEmpty()
The current object state is the "default"; "save" does not need to write out any state.


Version 2.1, Generated 12/30/04
Copyright (c) 2001-2004, Sun Microsystems.

This page is: http://www.experimentalstuff.com/About_this_site/apidoc/sunlabs/brazil/session/PropertiesCacheManager.Saveable.html
Last Modified: Fri, 31 Dec 2004 00:13:53 GMT
copyright (c) 2000-2007, Sun Microsystems