|
||||||||||
| 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(String str)
Restores the object from its string representation. |
String |
toString(T obj)
Converts the object to a string representation |
| Method Detail |
|---|
String toString(T obj)
throws IOException
obj - the object to convert
IOException - if the object cannot be converted
T fromString(String str)
throws IOException
str - the string representation of the object
IOException - if the object cannot be restored
void close()
throws IOException
close in interface CloseableIOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||