|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.json.JsonGenerator
com.google.api.client.json.gson.GsonGenerator
@Deprecated public class GsonGenerator
Low-level JSON serializer implementation based on GSON.
Implementation is not thread-safe.
Method Summary | |
---|---|
void |
close()
Deprecated. Closes the serializer and the underlying output stream or writer, and releases any memory associated with it. |
void |
flush()
Deprecated. Flushes any buffered content to the underlying output stream or writer. |
JsonFactory |
getFactory()
Deprecated. Returns the JSON factory from which this generator was created. |
void |
writeBoolean(boolean state)
Deprecated. Writes a literal JSON boolean value ('true' or 'false'). |
void |
writeEndArray()
Deprecated. Writes a JSON end array character ']'. |
void |
writeEndObject()
Deprecated. Writes a JSON end object character '}'. |
void |
writeFieldName(String name)
Deprecated. Writes a JSON quoted field name. |
void |
writeNull()
Deprecated. Writes a literal JSON null value. |
void |
writeNumber(BigDecimal v)
Deprecated. Writes a JSON big decimal value. |
void |
writeNumber(BigInteger v)
Deprecated. Writes a JSON big integer value. |
void |
writeNumber(double v)
Deprecated. Writes a JSON double value. |
void |
writeNumber(float v)
Deprecated. Writes a JSON float value. |
void |
writeNumber(int v)
Deprecated. Writes a JSON int value. |
void |
writeNumber(long v)
Deprecated. Writes a JSON long value. |
void |
writeNumber(String encodedValue)
Deprecated. Writes a JSON numeric value that has already been encoded properly. |
void |
writeStartArray()
Deprecated. Writes a JSON start array character '['. |
void |
writeStartObject()
Deprecated. Writes a JSON start object character '{'. |
void |
writeString(String value)
Deprecated. Writes a JSON quoted string value. |
Methods inherited from class com.google.api.client.json.JsonGenerator |
---|
serialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void flush() throws IOException
JsonGenerator
flush
in class JsonGenerator
IOException
- if failedpublic void close() throws IOException
JsonGenerator
close
in class JsonGenerator
IOException
- if failedpublic JsonFactory getFactory()
JsonGenerator
getFactory
in class JsonGenerator
public void writeBoolean(boolean state) throws IOException
JsonGenerator
writeBoolean
in class JsonGenerator
IOException
- if failedpublic void writeEndArray() throws IOException
JsonGenerator
writeEndArray
in class JsonGenerator
IOException
- if failedpublic void writeEndObject() throws IOException
JsonGenerator
writeEndObject
in class JsonGenerator
IOException
- if failedpublic void writeFieldName(String name) throws IOException
JsonGenerator
writeFieldName
in class JsonGenerator
IOException
- if failedpublic void writeNull() throws IOException
JsonGenerator
writeNull
in class JsonGenerator
IOException
- if failedpublic void writeNumber(int v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(long v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(BigInteger v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(double v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(float v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(BigDecimal v) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeNumber(String encodedValue) throws IOException
JsonGenerator
writeNumber
in class JsonGenerator
IOException
- if failedpublic void writeStartArray() throws IOException
JsonGenerator
writeStartArray
in class JsonGenerator
IOException
- if failedpublic void writeStartObject() throws IOException
JsonGenerator
writeStartObject
in class JsonGenerator
IOException
- if failedpublic void writeString(String value) throws IOException
JsonGenerator
writeString
in class JsonGenerator
IOException
- if failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |