T
- The type of the objects to be written.public class JsonObjectMapperWriter<T> extends Object implements Closeable
JsonGenerator
to write objects in JSON format.public JsonObjectMapperWriter(OutputStream output, boolean prettyPrint) throws IOException
IOException
public void write(T object) throws IOException
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
Copyright © 2009 The Apache Software Foundation