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 Jsonb
JsonbException
public <T> T fromJson(String str, Type runtimeType) throws JsonbException
fromJson
in interface Jsonb
JsonbException
public <T> T fromJson(Reader reader, Class<T> type) throws JsonbException
fromJson
in interface Jsonb
JsonbException
public <T> T fromJson(Reader reader, Type runtimeType) throws JsonbException
fromJson
in interface Jsonb
JsonbException
public <T> T fromJson(InputStream stream, Class<T> type) throws JsonbException
fromJson
in interface Jsonb
JsonbException
public <T> T fromJson(InputStream stream, Type runtimeType) throws JsonbException
fromJson
in interface Jsonb
JsonbException
public String toJson(Object inObject) throws JsonbException
toJson
in interface Jsonb
JsonbException
public String toJson(Object inObject, Type runtimeType) throws JsonbException
toJson
in interface Jsonb
JsonbException
public void toJson(Object inObject, Writer writer) throws JsonbException
toJson
in interface Jsonb
JsonbException
public void toJson(Object inObject, Type runtimeType, Writer writer) throws JsonbException
toJson
in interface Jsonb
JsonbException
public void toJson(Object inObject, OutputStream stream) throws JsonbException
toJson
in interface Jsonb
JsonbException
public void toJson(Object inObject, Type runtimeType, OutputStream stream) throws JsonbException
toJson
in interface Jsonb
JsonbException
public void close()
close
in interface AutoCloseable
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.