public class AJsonSerHelper extends Object
For details on the JSON spec, see http://json.org
| Constructor and Description |
|---|
AJsonSerHelper(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
endArray() |
void |
endObject() |
Writer |
getOut() |
void |
startArray() |
void |
startObject() |
void |
writeBooleanLiteral(boolean value) |
void |
writeKey(String key) |
void |
writeNullLiteral() |
void |
writeNumberLiteral(double value,
int numFracDigits) |
void |
writeNumberLiteral(long value,
int numFracDigits) |
void |
writeStringLiteral(String s) |
public AJsonSerHelper(OutputStream out)
public void startObject()
throws IOException
IOExceptionpublic void endObject()
throws IOException
IOExceptionpublic void writeKey(String key) throws IOException
IOExceptionpublic void startArray()
throws IOException
IOExceptionpublic void endArray()
throws IOException
IOExceptionpublic void writeStringLiteral(String s) throws IOException
IOExceptionpublic void writeNumberLiteral(long value,
int numFracDigits)
throws IOException
IOExceptionpublic void writeNumberLiteral(double value,
int numFracDigits)
throws IOException
IOExceptionpublic void writeBooleanLiteral(boolean value)
throws IOException
IOExceptionpublic void writeNullLiteral()
throws IOException
IOExceptionpublic Writer getOut()
Copyright © 2017. All rights reserved.