com.esri.arcgis.carto
Class MobileSync

java.lang.Object
  extended by com.esri.arcgis.carto.MobileSync
All Implemented Interfaces:
IMobileSync, IMobileSync2, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class MobileSync
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IMobileSync, IMobileSync2, ISupportErrorInfo

The Mobile Sync provides functionality for get and posting data in a map for Mobile clients.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
MobileSync()
          Constructs a MobileSync using ArcGIS Engine.
MobileSync(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MobileSync theMobileSync = (MobileSync) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 void executeRequest(IMemoryBlobStream pRequestStream, IMemoryBlobStream[] ppResponse)
          Handle Binary Request.
static String getClsid()
          getClsid.
 void getMobileMapInfo(IMobileMapInfo[] ppResponse)
          This is depricated at 10.0: Handle Binary Request.
 int hashCode()
          the hashcode for this object
 void init(IMap pMap, IPropertySet pProps)
          Initializes the MobileSync object.
 void initFromMapServer(IMapServer pMapServer, IPropertySet pProps)
          Initializes the MobileSync object from IMapServer (FastMap).
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 
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

MobileSync

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

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

MobileSync

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

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

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

init

public void init(IMap pMap,
                 IPropertySet pProps)
          throws IOException,
                 AutomationException
Initializes the MobileSync object.

Product Availability

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

Specified by:
init in interface IMobileSync
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (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.

executeRequest

public void executeRequest(IMemoryBlobStream pRequestStream,
                           IMemoryBlobStream[] ppResponse)
                    throws IOException,
                           AutomationException
Handle Binary Request.

Product Availability

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

Specified by:
executeRequest in interface IMobileSync
Parameters:
pRequestStream - A reference to a com.esri.arcgis.system.IMemoryBlobStream (in)
ppResponse - A reference to a com.esri.arcgis.system.IMemoryBlobStream (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initFromMapServer

public void initFromMapServer(IMapServer pMapServer,
                              IPropertySet pProps)
                       throws IOException,
                              AutomationException
Initializes the MobileSync object from IMapServer (FastMap).

Product Availability

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

Specified by:
initFromMapServer in interface IMobileSync2
Parameters:
pMapServer - A reference to a com.esri.arcgis.carto.IMapServer (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.

getMobileMapInfo

public void getMobileMapInfo(IMobileMapInfo[] ppResponse)
                      throws IOException,
                             AutomationException
This is depricated at 10.0: Handle Binary Request.

Product Availability

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

Specified by:
getMobileMapInfo in interface IMobileSync2
Parameters:
ppResponse - A reference to a com.esri.arcgis.carto.IMobileMapInfo (out: use single element array)
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.