|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Storable
This is the root interface for all immutable objects that must be stored in
e.g. a file or a database. Classes that implement this interface must
provide a constructor with a single parameter of type StringBuffer
.
The recommended way to store the objects is an XML representation, because it
is human-readable and flexible enough to describe all objects properly. For
convenience XMLParser
provides methods to store all
primitive data types, String
s, Storable
s and their array
types.
For writing or reading a StringBuffer
to or from a file you can use
FileManager
.
XMLParser
,
FileManager
Method Summary | |
---|---|
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
Method Detail |
---|
StringBuffer toXML()
StringBuffer
of an
instance of the implementing class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |