|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IJSONWriter
Provides access to members that control the sequential writing of JSON.
| Method Summary | |
|---|---|
void |
endArray()
Ends an array. |
void |
endObject()
Ends writing of an object. |
IStream |
getStream()
Obtains underlying stream. |
byte[] |
getStringBuffer()
Obtains copy of string buffer. |
void |
setFormatted(boolean value)
Writes 'pretty' formatting on or off. |
void |
setIndent(int value)
Writes indent for 'pretty' formatting. |
void |
startArray(String name)
Starts an array. |
void |
startObject(String name)
Starts writing an object. |
void |
writeBinary(String name,
byte[] value)
Writes a byte array. |
void |
writeBinaryVal(byte[] value)
Writes a byte array. |
void |
writeBoolean(String name,
boolean value)
Writes a boolean. |
void |
writeBooleanVal(boolean value)
Writes a boolean in array. |
void |
writeByte(String name,
byte value)
Writes a byte. |
void |
writeByteVal(byte value)
Writes a byte in array. |
void |
writeDate(String name,
Date value,
boolean asString)
Writes a date. |
void |
writeDateVal(Date value,
boolean asString)
Writes a date in array. |
void |
writeDouble(String name,
double value)
Writes a double. |
void |
writeDoubleVal(double value)
Writes a double in array. |
void |
writeFloat(String name,
float value)
Writes a float. |
void |
writeFloatVal(float value)
Writes a float in array. |
void |
writeInteger(String name,
int value)
Writes an integer. |
void |
writeIntegerVal(int value)
Writes an integer in array. |
void |
writeNull(String name)
Writes null property. |
void |
writeNullVal()
Writes null value in array. |
void |
writeShort(String name,
short value)
Writes a short. |
void |
writeShortVal(short value)
Writes a short int in array. |
void |
writeString(String name,
String value)
Writes a string property. |
void |
writeStringVal(String value)
Writes a string in array. |
void |
writeTo(IStream outputStream)
Specifies output JSON stream. |
void |
writeToString()
Redirects writing to internal string buffer. |
void |
writeVariant(String name,
Object value)
Writes a variant valued property. |
void |
writeVariantVal(Object value)
Writes a variant in array. |
| Method Detail |
|---|
void writeTo(IStream outputStream)
throws IOException,
AutomationException
outputStream - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeToString()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
byte[] getStringBuffer()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IStream getStream()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setFormatted(boolean value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setIndent(int value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void startObject(String name)
throws IOException,
AutomationException
name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void endObject()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void startArray(String name)
throws IOException,
AutomationException
name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void endArray()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeVariant(String name,
Object value)
throws IOException,
AutomationException
name - The name (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeString(String name,
String value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeBoolean(String name,
boolean value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeByte(String name,
byte value)
throws IOException,
AutomationException
name - The name (in)value - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeShort(String name,
short value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeInteger(String name,
int value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeFloat(String name,
float value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeDouble(String name,
double value)
throws IOException,
AutomationException
name - The name (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeDate(String name,
Date value,
boolean asString)
throws IOException,
AutomationException
name - The name (in)value - The value (in)asString - The asString (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeBinary(String name,
byte[] value)
throws IOException,
AutomationException
name - The name (in)value - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeNull(String name)
throws IOException,
AutomationException
name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeVariantVal(Object value)
throws IOException,
AutomationException
value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeStringVal(String value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeBooleanVal(boolean value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeByteVal(byte value)
throws IOException,
AutomationException
value - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeShortVal(short value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeIntegerVal(int value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeFloatVal(float value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeDoubleVal(double value)
throws IOException,
AutomationException
value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeDateVal(Date value,
boolean asString)
throws IOException,
AutomationException
value - The value (in)asString - The asString (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeBinaryVal(byte[] value)
throws IOException,
AutomationException
value - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeNullVal()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||