JsonGenerator.@Deprecated
public final class CompactJsonWriter
extends java.lang.Object
| Constructor and Description |
|---|
CompactJsonWriter()
Deprecated.
Replaced by
JsonGenerator.generate(Writer, JsonNode) and other similar JsonGenerator methods.
For example, use
new JsonGenerator().style(COMPACT).generate(Writer, JsonNode)
or
new JsonGenerator().style(COMPACT).generate(Writer, WriteableJsonObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.io.Writer writer,
JsonNode jsonNode)
Streams the specified
JsonNode formatted to the specified Writer. |
void |
write(java.io.Writer writer,
WriteableJsonArray writeableJsonArray)
Streams the specified
WriteableJsonArray formatted to the specified Writer. |
void |
write(java.io.Writer writer,
WriteableJsonNumber writeableJsonNumber)
Streams the specified
WriteableJsonNumber formatted to the specified Writer. |
void |
write(java.io.Writer writer,
WriteableJsonObject writeableJsonObject)
Streams the specified
WriteableJsonObject formatted to the specified Writer. |
void |
write(java.io.Writer writer,
WriteableJsonString writeableJsonString)
Streams the specified
WriteableJsonString formatted to the specified Writer. |
public CompactJsonWriter()
JsonGenerator.generate(Writer, JsonNode) and other similar JsonGenerator methods.
For example, use
new JsonGenerator().style(COMPACT).generate(Writer, JsonNode)
or
new JsonGenerator().style(COMPACT).generate(Writer, WriteableJsonObject) public final void write(java.io.Writer writer,
WriteableJsonArray writeableJsonArray)
throws java.io.IOException
JsonWriterWriteableJsonArray formatted to the specified Writer.write in interface JsonWriterwriter - the Writer to output to.writeableJsonArray - the WriteableJsonArray to output.java.io.IOException - if there was a problem writing to the Writer.public final void write(java.io.Writer writer,
WriteableJsonObject writeableJsonObject)
throws java.io.IOException
JsonWriterWriteableJsonObject formatted to the specified Writer.write in interface JsonWriterwriter - the Writer to output to.writeableJsonObject - the WriteableJsonObject to output.java.io.IOException - if there was a problem writing to the Writer.public final void write(java.io.Writer writer,
WriteableJsonString writeableJsonString)
throws java.io.IOException
JsonWriterWriteableJsonString formatted to the specified Writer.write in interface JsonWriterwriter - the Writer to output to.writeableJsonString - the WriteableJsonString to output.java.io.IOException - if there was a problem writing to the Writer.public final void write(java.io.Writer writer,
WriteableJsonNumber writeableJsonNumber)
throws java.io.IOException
JsonWriterWriteableJsonNumber formatted to the specified Writer.write in interface JsonWriterwriter - the Writer to output to.writeableJsonNumber - the WriteableJsonNumber to output.java.io.IOException - if there was a problem writing to the Writer.public final void write(java.io.Writer writer,
JsonNode jsonNode)
throws java.io.IOException
JsonWriterJsonNode formatted to the specified Writer.write in interface JsonWriterwriter - the Writer to output to.jsonNode - the JsonNode to output.java.io.IOException - if there was a problem writing to the Writer.