public class JohnsonJsonb extends Object implements Jsonb, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
private org.apache.johnzon.mapper.Mapper |
delegate |
| Constructor and Description |
|---|
JohnsonJsonb(org.apache.johnzon.mapper.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) |
private boolean |
isArray(Type runtimeType) |
private boolean |
isCollection(Type runtimeType) |
private Object[] |
toArray(Object object) |
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) |
private Object |
unwrapOptional(Object inObject) |
private Type |
unwrapPrimitiveOptional(Type type) |
private <T> T |
wrapPrimitiveOptional(Object object,
Type type) |
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 JsonbJsonbExceptionprivate boolean isArray(Type runtimeType)
private boolean isCollection(Type runtimeType)
public void close()
close in interface AutoCloseableCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.