T - the class of the objects to stringifypublic 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 在接口中 AutoCloseableclose 在接口中 CloseableIOException - if an I/O error occursCopyright © 2009 The Apache Software Foundation