public class JSONWriter extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IJSONWriter, IJSONWriter2, IJSONWriter3, IJSONWriter4, ISupportErrorInfo
Description 'A sequential JSON Writer.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID5d543160_39bd_4de5_8f53_9d9e8f09a426, xxDummy
IID1a92eb9a_69cb_4f17_b398_51756d5fb4f7
IID677fcbb1_c272_4616_b476_2ca3dce8d292
IID408cd30c_b7a6_4793_a07c_4181035c66e7
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
Constructor and Description |
---|
JSONWriter()
Constructs a JSONWriter using ArcGIS Engine.
|
JSONWriter(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
JSONWriter theJSONWriter = (JSONWriter) obj; |
Modifier and Type | Method and Description |
---|---|
void |
endArray()
Ends an array.
|
void |
endObject()
Ends writing of an object.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
static java.lang.String |
getClsid()
getClsid.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
IStream |
getStream()
Obtains underlying stream.
|
java.lang.String |
getString()
Obtains copy of string.
|
byte[] |
getStringBuffer()
Obtains copy of string buffer.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
void |
release()
Release this COM object reference
|
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(java.lang.String name)
Starts an array.
|
void |
startObject(java.lang.String name)
Starts writing an object.
|
void |
writeBinary(java.lang.String name,
byte[] value)
Writes a byte array.
|
void |
writeBinaryVal(byte[] value)
Writes a byte array.
|
void |
writeBoolean(java.lang.String name,
boolean value)
Writes a boolean.
|
void |
writeBooleanVal(boolean value)
Writes a boolean in array.
|
void |
writeByte(java.lang.String name,
byte value)
Writes a byte.
|
void |
writeByteVal(byte value)
Writes a byte in array.
|
void |
writeDate(java.lang.String name,
java.util.Date value,
boolean asString)
Writes a date.
|
void |
writeDateVal(java.util.Date value,
boolean asString)
Writes a date in array.
|
void |
writeDouble(java.lang.String name,
double value)
Writes a double.
|
void |
writeDoubleEx(java.lang.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(java.lang.String name,
float value)
Writes a float.
|
void |
writeFloatVal(float value)
Writes a float in array.
|
void |
writeInt64(java.lang.String name,
long value)
Writes a LONGLONG.
|
void |
writeInt64Val(long value)
Writes a LONGLONG in array.
|
void |
writeInteger(java.lang.String name,
int value)
Writes an integer.
|
void |
writeIntegerVal(int value)
Writes an integer in array.
|
void |
writeNull(java.lang.String name)
Writes null property.
|
void |
writeNullVal()
Writes null value in array.
|
void |
writeRawString(java.lang.String name,
java.lang.String value)
Writes a raw property without any processing.
|
void |
writeRawStringVal(java.lang.String value)
Writes a raw value without any processing.
|
void |
writeRawUtf8String(java.lang.String propname,
byte[] utf8String,
int size)
Writes Raw UTF8 String
|
void |
writeShort(java.lang.String name,
short value)
Writes a short.
|
void |
writeShortVal(short value)
Writes a short int in array.
|
void |
writeString(java.lang.String name,
java.lang.String value)
Writes a string property.
|
void |
writeStringVal(java.lang.String value)
Writes a string in array.
|
void |
writeTo(IStream outputStream)
Specifies output JSON stream.
|
void |
writeToString()
Redirects writing to internal string buffer.
|
void |
writeUInt64(java.lang.String name,
long value)
Writes a ULONGLONG.
|
void |
writeUInt64Val(long value)
Writes a ULONGLONG in array.
|
void |
writeVariant(java.lang.String name,
java.lang.Object value)
Writes a variant valued property.
|
void |
writeVariantVal(java.lang.Object value)
Writes a variant in array.
|
public JSONWriter() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic JSONWriter(java.lang.Object obj) throws java.io.IOException
JSONWriter theJSONWriter = (JSONWriter) obj;
obj
to JSONWriter
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void writeTo(IStream outputStream) throws java.io.IOException, AutomationException
writeTo
in interface IJSONWriter
outputStream
- A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeToString() throws java.io.IOException, AutomationException
writeToString
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public byte[] getStringBuffer() throws java.io.IOException, AutomationException
getStringBuffer
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IStream getStream() throws java.io.IOException, AutomationException
getStream
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setFormatted(boolean value) throws java.io.IOException, AutomationException
setFormatted
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setIndent(int value) throws java.io.IOException, AutomationException
setIndent
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void startObject(java.lang.String name) throws java.io.IOException, AutomationException
startObject
in interface IJSONWriter
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void endObject() throws java.io.IOException, AutomationException
endObject
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void startArray(java.lang.String name) throws java.io.IOException, AutomationException
startArray
in interface IJSONWriter
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void endArray() throws java.io.IOException, AutomationException
endArray
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeVariant(java.lang.String name, java.lang.Object value) throws java.io.IOException, AutomationException
writeVariant
in interface IJSONWriter
name
- The name (in)value
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeString(java.lang.String name, java.lang.String value) throws java.io.IOException, AutomationException
writeString
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeBoolean(java.lang.String name, boolean value) throws java.io.IOException, AutomationException
writeBoolean
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeByte(java.lang.String name, byte value) throws java.io.IOException, AutomationException
writeByte
in interface IJSONWriter
name
- The name (in)value
- An unsigned byte (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeShort(java.lang.String name, short value) throws java.io.IOException, AutomationException
writeShort
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeInteger(java.lang.String name, int value) throws java.io.IOException, AutomationException
writeInteger
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeFloat(java.lang.String name, float value) throws java.io.IOException, AutomationException
writeFloat
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDouble(java.lang.String name, double value) throws java.io.IOException, AutomationException
writeDouble
in interface IJSONWriter
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDate(java.lang.String name, java.util.Date value, boolean asString) throws java.io.IOException, AutomationException
writeDate
in interface IJSONWriter
name
- The name (in)value
- The value (in)asString
- The asString (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeBinary(java.lang.String name, byte[] value) throws java.io.IOException, AutomationException
writeBinary
in interface IJSONWriter
name
- The name (in)value
- An unsigned byte (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeNull(java.lang.String name) throws java.io.IOException, AutomationException
writeNull
in interface IJSONWriter
name
- The name (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeVariantVal(java.lang.Object value) throws java.io.IOException, AutomationException
writeVariantVal
in interface IJSONWriter
value
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeStringVal(java.lang.String value) throws java.io.IOException, AutomationException
writeStringVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeBooleanVal(boolean value) throws java.io.IOException, AutomationException
writeBooleanVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeByteVal(byte value) throws java.io.IOException, AutomationException
writeByteVal
in interface IJSONWriter
value
- An unsigned byte (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeShortVal(short value) throws java.io.IOException, AutomationException
writeShortVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeIntegerVal(int value) throws java.io.IOException, AutomationException
writeIntegerVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeFloatVal(float value) throws java.io.IOException, AutomationException
writeFloatVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDoubleVal(double value) throws java.io.IOException, AutomationException
writeDoubleVal
in interface IJSONWriter
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDateVal(java.util.Date value, boolean asString) throws java.io.IOException, AutomationException
writeDateVal
in interface IJSONWriter
value
- The value (in)asString
- The asString (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeBinaryVal(byte[] value) throws java.io.IOException, AutomationException
writeBinaryVal
in interface IJSONWriter
value
- An unsigned byte (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeNullVal() throws java.io.IOException, AutomationException
writeNullVal
in interface IJSONWriter
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void reset() throws java.io.IOException, AutomationException
reset
in interface IJSONWriter2
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeRawString(java.lang.String name, java.lang.String value) throws java.io.IOException, AutomationException
writeRawString
in interface IJSONWriter2
name
- The name (in)value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeRawStringVal(java.lang.String value) throws java.io.IOException, AutomationException
writeRawStringVal
in interface IJSONWriter2
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDoubleValEx(double value, int precision) throws java.io.IOException, AutomationException
writeDoubleValEx
in interface IJSONWriter2
value
- The value (in)precision
- The precision (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeDoubleEx(java.lang.String name, double value, int precision) throws java.io.IOException, AutomationException
writeDoubleEx
in interface IJSONWriter2
name
- The name (in)value
- The value (in)precision
- The precision (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeInt64(java.lang.String name, long value) throws java.io.IOException, AutomationException
writeInt64
in interface IJSONWriter3
name
- The name (in)value
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeInt64Val(long value) throws java.io.IOException, AutomationException
writeInt64Val
in interface IJSONWriter3
value
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeUInt64(java.lang.String name, long value) throws java.io.IOException, AutomationException
writeUInt64
in interface IJSONWriter3
name
- The name (in)value
- Unsigned 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeUInt64Val(long value) throws java.io.IOException, AutomationException
writeUInt64Val
in interface IJSONWriter3
value
- Unsigned 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getString() throws java.io.IOException, AutomationException
getString
in interface IJSONWriter4
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeRawUtf8String(java.lang.String propname, byte[] utf8String, int size) throws java.io.IOException, AutomationException
writeRawUtf8String
in interface IJSONWriter4
propname
- The propname (in)utf8String
- An unsigned byte (in)size
- The size (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.