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
IOExceptionpublic void write(T object) throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2009 The Apache Software Foundation