T - The type of the objects to be written.public class JsonObjectMapperWriter<T> extends Object implements Closeable
JsonGenerator to write objects in JSON format.| Constructor and Description |
|---|
JsonObjectMapperWriter(OutputStream output,
boolean prettyPrint) |
public JsonObjectMapperWriter(OutputStream output, boolean prettyPrint) throws IOException
IOExceptionpublic void write(T object) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.