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 AutoCloseable
close
in interface Closeable
IOException
- if an I/O error occursCopyright © 2024 Apache Software Foundation. All rights reserved.