public interface JsonProvider
| 限定符和类型 | 方法和说明 |
|---|---|
void |
marshal(Writer writer,
Object value)
Serialize value to json, and write to writer
|
<T> T |
unmarshal(InputStream inputStream,
Charset charset,
Type type)
Deserialize json from input stream, with charset and type.
|
<T> T |
unmarshal(Reader reader,
Type type)
Deserialize json from reader, with type
|
void marshal(Writer writer, @Nullable Object value) throws IOException
IOException@Nullable <T> T unmarshal(Reader reader, Type type) throws IOException
IOException@Nullable <T> T unmarshal(InputStream inputStream, Charset charset, Type type) throws IOException
IOExceptionCopyright © 2017. All rights reserved.