|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for objects that can convert itself to a string and "recreate" itself from
that string. This interface is much more limited than Serializable. The few advantages
Stringizable has over Serializable are: Stringizable works with Java 1.0.2,
the string version of an object is readable and parsable by humans, and the
string version of an object is ligher weight than in Serializable. The main use
of Stringizable is for use in Java 1.0.2, motivate for students
the utility of Serializable with less overhead, and for use in client-server
programing where the strings must satisfy a protocol.
Version Info
1.1 Added metaData
Stringizer
,
SimpleTokenizer
,
TokenCharacters
Method Summary | |
void |
fromString(java.lang.String objectString)
Converts a string to an object. |
LabeledData |
getMetaData()
Gets the meta data from the object. |
void |
setMetaData(LabeledData metaData)
Sets the meta data for the object. |
java.lang.String |
toString()
Converts the object to a string |
java.lang.String |
toString(java.lang.String header)
Converts the object to a string with given header information. |
Method Detail |
public void fromString(java.lang.String objectString) throws ConversionException
public void setMetaData(LabeledData metaData)
public LabeledData getMetaData()
public java.lang.String toString()
public java.lang.String toString(java.lang.String header)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |