public class Mapper extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected Charset |
charset |
protected Collection<Closeable> |
closeables |
protected MapperConfig |
config |
protected javax.json.stream.JsonGeneratorFactory |
generatorFactory |
protected Mappings |
mappings |
protected javax.json.JsonReaderFactory |
readerFactory |
protected ReaderHandler |
readerHandler |
protected ConcurrentMap<Adapter<?,?>,AdapterKey> |
reverseAdaptersRegistry |
protected final MapperConfig config
protected final Mappings mappings
protected final javax.json.JsonReaderFactory readerFactory
protected final javax.json.stream.JsonGeneratorFactory generatorFactory
protected final ConcurrentMap<Adapter<?,?>,AdapterKey> reverseAdaptersRegistry
protected final ReaderHandler readerHandler
protected final Collection<Closeable> closeables
protected final Charset charset
public <T> void writeArray(Object object, OutputStream stream)
public <T> void writeArray(T[] object, OutputStream stream)
public <T> void writeArray(T[] object, Writer stream)
public <T> void writeArray(Collection<T> object, OutputStream stream)
public <T> void writeArray(Collection<T> object, Writer stream)
public <T> void writeIterable(Iterable<T> object, OutputStream stream)
public void writeObject(Object object, OutputStream stream)
public String writeArrayAsString(Collection<?> instance)
public <T> String writeArrayAsString(T[] instance)
public <T> T readObject(InputStream stream, Type clazz)
public <T> Collection<T> readCollection(InputStream stream, ParameterizedType genericType)
public <T> T readJohnzonCollection(InputStream stream, JohnzonCollectionType<T> genericType)
public <T> T readJohnzonCollection(Reader stream, JohnzonCollectionType<T> genericType)
public <T> Collection<T> readCollection(Reader stream, ParameterizedType genericType)
public <T> T readTypedArray(InputStream stream, Class<?> elementType, Class<T> arrayType)
public <T> T[] readArray(InputStream stream, Class<T> clazz)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.