public class JSONWriter extends java.lang.Object implements XmlUtil.ObjectNotationWriter
Constructor and Description |
---|
JSONWriter(java.io.Writer out,
boolean unformatted) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
writeArrayFieldStart(java.lang.String qName) |
void |
writeBinary(byte[] content) |
void |
writeBoolean(java.lang.Boolean content) |
void |
writeComment(java.lang.String comment) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(java.lang.String qName) |
void |
writeNull() |
void |
writeNumber(java.math.BigDecimal content) |
void |
writeNumber(java.math.BigInteger content) |
void |
writeNumber(java.lang.Double content) |
void |
writeNumber(java.lang.Float content) |
void |
writeNumber(java.lang.Integer content) |
void |
writeNumber(java.lang.Long content) |
void |
writeNumber(java.lang.Short content) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeString(java.lang.String string) |
public JSONWriter(java.io.Writer out, boolean unformatted) throws java.io.IOException
java.io.IOException
public void writeStartObject() throws java.io.IOException
writeStartObject
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeStartArray() throws java.io.IOException
writeStartArray
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeEndObject() throws java.io.IOException
writeEndObject
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeEndArray() throws java.io.IOException
writeEndArray
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeFieldName(java.lang.String qName) throws java.io.IOException
writeFieldName
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeArrayFieldStart(java.lang.String qName) throws java.io.IOException
writeArrayFieldStart
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNull() throws java.io.IOException
writeNull
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeBinary(byte[] content) throws java.io.IOException
writeBinary
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeBoolean(java.lang.Boolean content) throws java.io.IOException
writeBoolean
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.math.BigInteger content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.math.BigDecimal content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.lang.Double content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.lang.Float content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.lang.Integer content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.lang.Long content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeNumber(java.lang.Short content) throws java.io.IOException
writeNumber
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeString(java.lang.String string) throws java.io.IOException
writeString
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void writeComment(java.lang.String comment) throws java.io.IOException
writeComment
in interface XmlUtil.ObjectNotationWriter
java.io.IOException
public void close()
close
in interface XmlUtil.ObjectNotationWriter