T
- 要字符串化的对象类@InterfaceAudience.Public @InterfaceStability.Stable public interface Stringifierextends Closeable
String toString(T obj) throws IOException
obj
- 要转换的对象IOException
- 如果对象无法转换T fromString(String str) throws IOException
str
- 对象的字符串表示形式IOException
- 如果无法恢复对象void close() throws IOException
close
在接口 AutoCloseable
中close
在接口 Closeable
中IOException
- 如果发生I/O错误版权所有 © 2024 Apache软件基金会。保留所有权利。