public class JohnsonJsonb extends Object implements Jsonb, AutoCloseable
| Constructor and Description |
|---|
JohnsonJsonb(Mapper build) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<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 inObject) |
void |
toJson(Object inObject,
OutputStream stream) |
String |
toJson(Object inObject,
Type runtimeType) |
void |
toJson(Object inObject,
Type runtimeType,
OutputStream stream) |
void |
toJson(Object inObject,
Type runtimeType,
Writer writer) |
void |
toJson(Object inObject,
Writer writer) |
public JohnsonJsonb(Mapper build)
public <T> T fromJson(String str, Class<T> type) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic <T> T fromJson(String str, Type runtimeType) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic <T> T fromJson(Reader reader, Class<T> type) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic <T> T fromJson(Reader reader, Type runtimeType) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic <T> T fromJson(InputStream stream, Class<T> type) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic <T> T fromJson(InputStream stream, Type runtimeType) throws JsonbException
fromJson in interface JsonbJsonbExceptionpublic String toJson(Object inObject) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic String toJson(Object inObject, Type runtimeType) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic void toJson(Object inObject, Writer writer) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic void toJson(Object inObject, Type runtimeType, Writer writer) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic void toJson(Object inObject, OutputStream stream) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic void toJson(Object inObject, Type runtimeType, OutputStream stream) throws JsonbException
toJson in interface JsonbJsonbExceptionpublic void close()
close in interface AutoCloseableCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.