T
- the class of the objects to stringify@InterfaceAudience.Public @InterfaceStability.Stable public interface Stringifier<T> extends Closeable
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 © 2017 Apache Software Foundation. All Rights Reserved.