T - the class of the objects to stringifyjava.lang.AutoCloseable, java.io.CloseableDefaultStringifier@Public
@Stable
public interface Stringifier<T>
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this object.
|
T |
fromString(java.lang.String str) |
Restores the object from its string representation.
|
java.lang.String |
toString(T obj) |
Converts the object to a string representation
|
java.lang.String toString(T obj) throws java.io.IOException
obj - the object to convertjava.io.IOException - if the object cannot be convertedT fromString(java.lang.String str) throws java.io.IOException
str - the string representation of the objectjava.io.IOException - if the object cannot be restoredvoid close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - if an I/O error occursCopyright © 2008–2025 Apache Software Foundation. All rights reserved.