-
public interface JsonMarshallerInterface for marshalling to and unmarshalling from json.
-
-
方法详细资料
-
marshal
void marshal(@Nullable Object value, Writer writer) throws IOException
Marshal value to json, and write to output stream. The writer is leaved unclosed when marshal finished or exception occurred.- 抛出:
IOException
-
unmarshal
<T> @Nullable T unmarshal(Reader reader, Type type) throws IOException
Unmarshal json from input stream, by Type. The reader is leaved unclosed when unmarshal finished or exception occurred.- 抛出:
IOException
-
-