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.IOExceptionpublic void writeStartObject()
throws java.io.IOException
writeStartObject in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeStartArray()
throws java.io.IOException
writeStartArray in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeEndObject()
throws java.io.IOException
writeEndObject in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeEndArray()
throws java.io.IOException
writeEndArray in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeFieldName(java.lang.String qName)
throws java.io.IOException
writeFieldName in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeArrayFieldStart(java.lang.String qName)
throws java.io.IOException
writeArrayFieldStart in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNull()
throws java.io.IOException
writeNull in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeBinary(byte[] content)
throws java.io.IOException
writeBinary in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeBoolean(java.lang.Boolean content)
throws java.io.IOException
writeBoolean in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.math.BigInteger content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.math.BigDecimal content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.lang.Double content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.lang.Float content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.lang.Integer content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.lang.Long content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeNumber(java.lang.Short content)
throws java.io.IOException
writeNumber in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeString(java.lang.String string)
throws java.io.IOException
writeString in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void writeComment(java.lang.String comment)
throws java.io.IOException
writeComment in interface XmlUtil.ObjectNotationWriterjava.io.IOExceptionpublic void close()
close in interface XmlUtil.ObjectNotationWriter