| Package | Description |
|---|---|
| com.abubusoft.kripton |
Contains logic to create an intermediate rapresentation of data between java pojo and json/xml format.
|
| com.abubusoft.kripton.binder.json |
Package for JSON implementation of binder reader/writer.
|
| com.abubusoft.kripton.binder.schema |
This package contains frontend classes/interface of the library: binders reader and writer and its factory.
|
| com.abubusoft.kripton.binder.xml |
Implementation of writer/reader binder for xml format
|
| com.abubusoft.kripton.common |
common classes package.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
BinderReader.read(Class<? extends T> type,
InputStream source)
Read or deserialize an input stream into a POJO of specific type.
|
<T> T |
BinderReader.read(Class<? extends T> type,
Reader source)
Read or deserialize a character stream reader into a POJO of specific type.
|
<T> T |
BinderReader.read(Class<? extends T> type,
String source)
Read or deserialize an string into a POJO of specific type.
|
<L extends Collection<E>,E> |
BinderJsonReader.readCollection(L collection,
Class<E> type,
Reader source) |
<E> List<E> |
BinderJsonReader.readList(Class<E> type,
Reader source) |
<M extends Map<K,V>,K,V> |
BinderJsonReader.readMap(M map,
Class<K> keyType,
Class<V> valueType,
Reader source) |
String |
BinderWriter.write(Object source)
Write POJO into string.
|
void |
BinderWriter.write(Object source,
OutputStream os)
Write POJO into output stream of bytes.
|
void |
BinderWriter.write(Object source,
Writer out)
Write POJO into character stream.
|
String |
BinderJsonWriter.writeCollection(Collection<?> source) |
void |
BinderJsonWriter.writeCollection(Collection<?> source,
OutputStream os) |
void |
BinderJsonWriter.writeCollection(Collection<?> source,
Writer out) |
String |
BinderJsonWriter.writeMap(Map<?,?> source) |
void |
BinderJsonWriter.writeMap(Map<?,?> source,
OutputStream os) |
void |
BinderJsonWriter.writeMap(Map<?,?> source,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JsonReader.read(Class<? extends T> type,
InputStream source) |
<T> T |
JsonReader.read(Class<? extends T> type,
Reader source) |
<T> T |
JsonReader.read(Class<? extends T> type,
String source) |
<L extends Collection<E>,E> |
JsonReader.readCollection(L collection,
Class<E> type,
Reader source) |
<E> List<E> |
JsonReader.readList(Class<E> type,
Reader source) |
<M extends Map<K,V>,K,V> |
JsonReader.readMap(M map,
Class<K> keyType,
Class<V> valueType,
Reader source) |
String |
JsonWriter.write(Object source) |
void |
JsonWriter.write(Object source,
OutputStream os) |
void |
JsonWriter.write(Object source,
Writer out) |
String |
JsonWriter.writeCollection(Collection<?> source) |
void |
JsonWriter.writeCollection(Collection<?> source,
OutputStream os) |
void |
JsonWriter.writeCollection(Collection<?> source,
Writer out) |
String |
JsonWriter.writeMap(Map<?,?> source) |
void |
JsonWriter.writeMap(Map<?,?> source,
OutputStream os) |
void |
JsonWriter.writeMap(Map<?,?> source,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
static MappingSchema |
MappingSchema.fromClass(Class<?> type)
Factory method.
|
static MappingSchema |
MappingSchema.fromObject(Object object)
Factory method.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
XmlSAXReader.read(Class<? extends T> type,
InputStream source) |
<T> T |
XmlDOMReader.read(Class<? extends T> type,
InputStream source) |
<T> T |
XmlSAXReader.read(Class<? extends T> type,
Reader source) |
<T> T |
XmlDOMReader.read(Class<? extends T> type,
Reader source) |
<T> T |
XmlSAXReader.read(Class<? extends T> type,
String source) |
<T> T |
XmlDOMReader.read(Class<? extends T> type,
String source) |
String |
XmlPullWriter.write(Object source) |
void |
XmlPullWriter.write(Object source,
OutputStream os) |
void |
XmlPullWriter.write(Object source,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
GenericClass.resolveType(Type type) |
Copyright © 2016. All rights reserved.