public final class StrictCharacterStreamJsonWriter extends Object implements StrictJsonWriter
Writer.| Constructor and Description |
|---|
StrictCharacterStreamJsonWriter(Writer writer,
StrictCharacterStreamJsonWriterSettings settings)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeBoolean(boolean value)
Writes a boolean to the writer.
|
void |
writeBoolean(String name,
boolean value)
Writes a a member with a boolean value to the writer.
|
void |
writeEndArray()
Writes the end of a JSON array to the writer.
|
void |
writeEndObject()
Writes the end of a JSON object to the writer.
|
void |
writeName(String name)
Writes the name of a member to the writer.
|
void |
writeNull()
Writes a null value to the writer.
|
void |
writeNull(String name)
Writes a member with a null value to the writer.
|
void |
writeNumber(String value)
Writes a number to the writer.
|
void |
writeNumber(String name,
String value)
Writes a member with a numeric value to the writer.
|
void |
writeRaw(String value)
Writes a raw value without quoting or escaping.
|
void |
writeRaw(String name,
String value)
Writes a member with a raw value without quoting or escaping.
|
void |
writeStartArray()
Writes the start of a array to the writer.
|
void |
writeStartArray(String name)
Writes the start of JSON array member to the writer.
|
void |
writeStartObject()
Writes the start of a JSON object to the writer.
|
void |
writeStartObject(String name)
Writes the start of a JSON object member to the writer.
|
void |
writeString(String value)
Writes a String to the writer.
|
void |
writeString(String name,
String value)
Writes a member with a string value to the writer.
|
public StrictCharacterStreamJsonWriter(Writer writer, StrictCharacterStreamJsonWriterSettings settings)
writer - the writer to write JSON to.settings - the settings to apply to this writer.public void writeStartObject(String name)
StrictJsonWriterwriteStartObject in interface StrictJsonWritername - the member namepublic void writeStartArray(String name)
StrictJsonWriterwriteStartArray in interface StrictJsonWritername - the member namepublic void writeBoolean(String name, boolean value)
StrictJsonWriterwriteBoolean in interface StrictJsonWritername - the member namevalue - the boolean valuepublic void writeNumber(String name, String value)
StrictJsonWriterwriteNumber in interface StrictJsonWritername - the member namevalue - the Double value, as a String so that clients can take full control over formattingpublic void writeString(String name, String value)
StrictJsonWriterwriteString in interface StrictJsonWritername - the member namevalue - the String valuepublic void writeRaw(String name, String value)
StrictJsonWriterwriteRaw in interface StrictJsonWritername - the member namevalue - the raw valuepublic void writeNull(String name)
StrictJsonWriterwriteNull in interface StrictJsonWritername - the member namepublic void writeName(String name)
StrictJsonWriterwriteName in interface StrictJsonWritername - the member namepublic void writeBoolean(boolean value)
StrictJsonWriterwriteBoolean in interface StrictJsonWritervalue - the boolean value.public void writeNumber(String value)
StrictJsonWriterwriteNumber in interface StrictJsonWritervalue - the Double value, as a String so that clients can take full control over formattingpublic void writeString(String value)
StrictJsonWriterwriteString in interface StrictJsonWritervalue - the String valuepublic void writeRaw(String value)
StrictJsonWriterwriteRaw in interface StrictJsonWritervalue - the String valuepublic void writeNull()
StrictJsonWriterwriteNull in interface StrictJsonWriterpublic void writeStartObject()
StrictJsonWriterwriteStartObject in interface StrictJsonWriterpublic void writeStartArray()
StrictJsonWriterwriteStartArray in interface StrictJsonWriterpublic void writeEndObject()
StrictJsonWriterwriteEndObject in interface StrictJsonWriterpublic void writeEndArray()
StrictJsonWriterwriteEndArray in interface StrictJsonWriter