|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the class of the objects to stringifypublic interface Stringifier<T>
Stringifier interface offers two methods to convert an object to a string representation and restore the object given its string representation.
Method Summary | |
---|---|
void |
close()
Closes this object. |
T |
fromString(java.lang.String str)
Restores the object from its string representation. |
java.lang.String |
toString(T obj)
Converts the object to a string representation |
Method Detail |
---|
java.lang.String toString(T obj) throws java.io.IOException
obj
- the object to convert
java.io.IOException
- if the object cannot be convertedT fromString(java.lang.String str) throws java.io.IOException
str
- the string representation of the object
java.io.IOException
- if the object cannot be restoredvoid close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |