com.esri.arcgis.geodatabase
Class JSONDeserializerGdb

java.lang.Object
  extended by com.esri.arcgis.geodatabase.JSONDeserializerGdb
All Implemented Interfaces:
IExternalDeserializerGdb, com.esri.arcgis.interop.RemoteObjRef, IExternalDeserializer, IJSONDeserializer, ISupportErrorInfo, Serializable

public class JSONDeserializerGdb
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IJSONDeserializer, IExternalDeserializerGdb, ISupportErrorInfo

High-level object deserializer from JSON.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
JSONDeserializerGdb()
          Constructs a JSONDeserializerGdb using ArcGIS Engine.
JSONDeserializerGdb(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONDeserializerGdb theJSONDeserializerGdb = (JSONDeserializerGdb) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IJSONReader getReader()
          Obtains JSON Reader.
 int hashCode()
          the hashcode for this object
 void initDeserializer(IJSONReader pReader, IPropertySet pProps)
          Write deserialization options.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 IGeometry readGeometry(int geomType)
          Reads geometry object.
 Object readObject(GUID riid, IPropertySet pProps)
          Deserialize an object.
 ISpatialReference readSpatialReference()
          Reads 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

JSONDeserializerGdb

public JSONDeserializerGdb()
                    throws IOException,
                           UnknownHostException
Constructs a JSONDeserializerGdb using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

JSONDeserializerGdb

public JSONDeserializerGdb(Object obj)
                    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONDeserializerGdb theJSONDeserializerGdb = (JSONDeserializerGdb) obj;

Construct a JSONDeserializerGdb using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to JSONDeserializerGdb.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getReader

public IJSONReader getReader()
                      throws IOException,
                             AutomationException
Obtains JSON Reader.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getReader in interface IJSONDeserializer
Returns:
A reference to a com.esri.arcgis.system.IJSONReader
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initDeserializer

public void initDeserializer(IJSONReader pReader,
                             IPropertySet pProps)
                      throws IOException,
                             AutomationException
Write deserialization options.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
initDeserializer in interface IJSONDeserializer
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readObject

public Object readObject(GUID riid,
                         IPropertySet pProps)
                  throws IOException,
                         AutomationException
Deserialize an object. riid references an interface to use. If interface is not supported, E_NOTIMPL is returned.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
readObject in interface IExternalDeserializer
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readSpatialReference

public ISpatialReference readSpatialReference()
                                       throws IOException,
                                              AutomationException
Reads spatial reference object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
readSpatialReference in interface IExternalDeserializerGdb
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readGeometry

public IGeometry readGeometry(int geomType)
                       throws IOException,
                              AutomationException
Reads geometry object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
readGeometry in interface IExternalDeserializerGdb
Parameters:
geomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.