T - the class of the objects to stringify@InterfaceAudience.Public @InterfaceStability.Stable public interface Stringifier<T> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
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
|
String toString(T obj) throws IOException
obj - the object to convertIOException - if the object cannot be convertedT fromString(String str) throws IOException
str - the string representation of the objectIOException - if the object cannot be restoredvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException - if an I/O error occursCopyright © 2023 Apache Software Foundation. All rights reserved.