T - The type of the objects to be written.java.io.Closeable, java.lang.AutoCloseablepublic class JsonObjectMapperWriter<T>
extends java.lang.Object
implements java.io.Closeable
JsonGenerator to write objects in JSON format.| Constructor | Description |
|---|---|
JsonObjectMapperWriter(java.io.OutputStream output,
boolean prettyPrint) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
write(T object) |
public JsonObjectMapperWriter(java.io.OutputStream output,
boolean prettyPrint)
throws java.io.IOException
java.io.IOExceptionpublic void write(T object) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.