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
IOException
public void write(T object) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.