public interface Jsonb extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
<T> T |
fromJson(InputStream stream,
Class<T> type) |
<T> T |
fromJson(InputStream stream,
Type runtimeType) |
<T> T |
fromJson(Reader reader,
Class<T> type) |
<T> T |
fromJson(Reader reader,
Type runtimeType) |
<T> T |
fromJson(String str,
Class<T> type) |
<T> T |
fromJson(String str,
Type runtimeType) |
String |
toJson(Object object) |
void |
toJson(Object object,
OutputStream stream) |
String |
toJson(Object object,
Type runtimeType) |
void |
toJson(Object object,
Type runtimeType,
OutputStream stream) |
void |
toJson(Object object,
Type runtimeType,
Writer writer) |
void |
toJson(Object object,
Writer writer) |
close
<T> T fromJson(String str, Class<T> type) throws JsonbException
JsonbException
<T> T fromJson(String str, Type runtimeType) throws JsonbException
JsonbException
<T> T fromJson(Reader reader, Class<T> type) throws JsonbException
JsonbException
<T> T fromJson(Reader reader, Type runtimeType) throws JsonbException
JsonbException
<T> T fromJson(InputStream stream, Class<T> type) throws JsonbException
JsonbException
<T> T fromJson(InputStream stream, Type runtimeType) throws JsonbException
JsonbException
String toJson(Object object) throws JsonbException
JsonbException
String toJson(Object object, Type runtimeType) throws JsonbException
JsonbException
void toJson(Object object, Writer writer) throws JsonbException
JsonbException
void toJson(Object object, Type runtimeType, Writer writer) throws JsonbException
JsonbException
void toJson(Object object, OutputStream stream) throws JsonbException
JsonbException
void toJson(Object object, Type runtimeType, OutputStream stream) throws JsonbException
JsonbException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.