|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.JSONSerializerGdb
public class JSONSerializerGdb
High-level object serializer into JSON coclass.
Constructor Summary | |
---|---|
JSONSerializerGdb()
Constructs a JSONSerializerGdb using ArcGIS Engine. |
|
JSONSerializerGdb(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. JSONSerializerGdb theJSONSerializerGdb = (JSONSerializerGdb) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
byte[] |
getErrorObject(String propname,
int code,
String message,
IStringArray details)
Convenience method. |
IJSONWriter |
getWriter()
Obtains JSON Writer. |
int |
hashCode()
the hashcode for this object |
void |
initSerializer(IJSONWriter pWriter,
IPropertySet pProps)
Writes serialization options. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
writeErrorObject(String propname,
int code,
String message,
IStringArray details)
Writes error object. |
void |
writeGeometry(String propname,
IGeometry pGeom)
Writes geometry object. |
void |
writeObject(Object pUnk,
IPropertySet pProps)
Serializes an object. |
void |
writeRecordSet(String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt)
Writes feature recordset. |
void |
writeRow(String propname,
IRow pRow,
IFields pFields,
int[] rowFieldIndexes,
IGeometryResultOptions pGeomOpt)
Writes feature row object |
void |
writeSpatialReference(String propname,
ISpatialReference pSR)
Writes spatial reference object. |
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 JSONSerializerGdb() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic JSONSerializerGdb(Object obj) throws IOException
JSONSerializerGdb theJSONSerializerGdb = (JSONSerializerGdb) obj;
obj
to JSONSerializerGdb
.
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 IJSONWriter getWriter() throws IOException, AutomationException
getWriter
in interface IJSONSerializer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initSerializer(IJSONWriter pWriter, IPropertySet pProps) throws IOException, AutomationException
initSerializer
in interface IJSONSerializer
pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeObject(Object pUnk, IPropertySet pProps) throws IOException, AutomationException
writeObject
in interface IExternalSerializer
pUnk
- A reference to another Object (IUnknown) (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeSpatialReference(String propname, ISpatialReference pSR) throws IOException, AutomationException
writeSpatialReference
in interface IExternalSerializerGdb
propname
- The propname (in)pSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeGeometry(String propname, IGeometry pGeom) throws IOException, AutomationException
writeGeometry
in interface IExternalSerializerGdb
propname
- The propname (in)pGeom
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeRow(String propname, IRow pRow, IFields pFields, int[] rowFieldIndexes, IGeometryResultOptions pGeomOpt) throws IOException, AutomationException
writeRow
in interface IExternalSerializerGdb
propname
- The propname (in)pRow
- A reference to a com.esri.arcgis.geodatabase.IRow (in)pFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)rowFieldIndexes
- The rowFieldIndexes (in)pGeomOpt
- A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeRecordSet(String propname, IRecordSet pRecordset, IGeometryResultOptions pGeomOpt) throws IOException, AutomationException
writeRecordSet
in interface IExternalSerializerGdb
propname
- The propname (in)pRecordset
- A reference to a com.esri.arcgis.geodatabase.IRecordSet (in)pGeomOpt
- A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeErrorObject(String propname, int code, String message, IStringArray details) throws IOException, AutomationException
writeErrorObject
in interface IExternalSerializerGdb
propname
- The propname (in)code
- The code (in)message
- The message (in)details
- A reference to a com.esri.arcgis.system.IStringArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getErrorObject(String propname, int code, String message, IStringArray details) throws IOException, AutomationException
getErrorObject
in interface IExternalSerializerGdb
propname
- The propname (in)code
- The code (in)message
- The message (in)details
- A reference to a com.esri.arcgis.system.IStringArray (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 |