|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.JSONWriter
public class JSONWriter
A sequential JSON Writer.
Constructor Summary | |
---|---|
JSONWriter()
Constructs a JSONWriter using ArcGIS Engine. |
|
JSONWriter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. JSONWriter theJSONWriter = (JSONWriter) obj; |
Method Summary | |
---|---|
void |
endArray()
Ends an array. |
void |
endObject()
Ends writing of an object. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IStream |
getStream()
Obtains underlying stream. |
byte[] |
getStringBuffer()
Obtains copy of string buffer. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
reset()
Resets IJSONWriter's internal state. |
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 |
writeDoubleEx(String name,
double value,
int precision)
Writes a double with specified number of digits after decimal point. |
void |
writeDoubleVal(double value)
Writes a double in array. |
void |
writeDoubleValEx(double value,
int precision)
Writes a double in array with specified number of digits after decimal point. |
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 |
writeRawString(String name,
String value)
Writes a raw property without any processing. |
void |
writeRawStringVal(String value)
Writes a raw value without any processing. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public JSONWriter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic JSONWriter(Object obj) throws IOException
JSONWriter theJSONWriter = (JSONWriter) obj;
obj
to JSONWriter
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void writeTo(IStream outputStream) throws IOException, AutomationException
writeTo
in interface IJSONWriter
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.public void writeToString() throws IOException, AutomationException
writeToString
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getStringBuffer() throws IOException, AutomationException
getStringBuffer
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStream getStream() throws IOException, AutomationException
getStream
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFormatted(boolean value) throws IOException, AutomationException
setFormatted
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIndent(int value) throws IOException, AutomationException
setIndent
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startObject(String name) throws IOException, AutomationException
startObject
in interface IJSONWriter
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void endObject() throws IOException, AutomationException
endObject
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startArray(String name) throws IOException, AutomationException
startArray
in interface IJSONWriter
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void endArray() throws IOException, AutomationException
endArray
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeVariant(String name, Object value) throws IOException, AutomationException
writeVariant
in interface IJSONWriter
name
- The name (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeString(String name, String value) throws IOException, AutomationException
writeString
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeBoolean(String name, boolean value) throws IOException, AutomationException
writeBoolean
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeByte(String name, byte value) throws IOException, AutomationException
writeByte
in interface IJSONWriter
name
- The name (in)value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeShort(String name, short value) throws IOException, AutomationException
writeShort
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeInteger(String name, int value) throws IOException, AutomationException
writeInteger
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeFloat(String name, float value) throws IOException, AutomationException
writeFloat
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDouble(String name, double value) throws IOException, AutomationException
writeDouble
in interface IJSONWriter
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDate(String name, Date value, boolean asString) throws IOException, AutomationException
writeDate
in interface IJSONWriter
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.public void writeBinary(String name, byte[] value) throws IOException, AutomationException
writeBinary
in interface IJSONWriter
name
- The name (in)value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeNull(String name) throws IOException, AutomationException
writeNull
in interface IJSONWriter
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeVariantVal(Object value) throws IOException, AutomationException
writeVariantVal
in interface IJSONWriter
value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeStringVal(String value) throws IOException, AutomationException
writeStringVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeBooleanVal(boolean value) throws IOException, AutomationException
writeBooleanVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeByteVal(byte value) throws IOException, AutomationException
writeByteVal
in interface IJSONWriter
value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeShortVal(short value) throws IOException, AutomationException
writeShortVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeIntegerVal(int value) throws IOException, AutomationException
writeIntegerVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeFloatVal(float value) throws IOException, AutomationException
writeFloatVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDoubleVal(double value) throws IOException, AutomationException
writeDoubleVal
in interface IJSONWriter
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDateVal(Date value, boolean asString) throws IOException, AutomationException
writeDateVal
in interface IJSONWriter
value
- The value (in)asString
- The asString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeBinaryVal(byte[] value) throws IOException, AutomationException
writeBinaryVal
in interface IJSONWriter
value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeNullVal() throws IOException, AutomationException
writeNullVal
in interface IJSONWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface IJSONWriter2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeRawString(String name, String value) throws IOException, AutomationException
writeRawString
in interface IJSONWriter2
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeRawStringVal(String value) throws IOException, AutomationException
writeRawStringVal
in interface IJSONWriter2
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDoubleValEx(double value, int precision) throws IOException, AutomationException
writeDoubleValEx
in interface IJSONWriter2
value
- The value (in)precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeDoubleEx(String name, double value, int precision) throws IOException, AutomationException
writeDoubleEx
in interface IJSONWriter2
name
- The name (in)value
- The value (in)precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 |