com.esri.arcgis.geometry
Class IESRIShape2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geometry.IESRIShapeProxy
          extended by com.esri.arcgis.geometry.IESRIShape2Proxy
All Implemented Interfaces:
IESRIShape, IESRIShape2, Externalizable, Serializable

public class IESRIShape2Proxy
extends IESRIShapeProxy
implements IESRIShape2, Serializable

Provides access to methods for non-byte swapping and angular densification export in addition to those in IESRIShape.

Product Availability

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IESRIShape2Proxy()
           
  IESRIShape2Proxy(Object obj)
           
protected IESRIShape2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void exportToESRIShapeEx2(int exportFlags, int[] byteCountInOut, byte[] byteBuffer)
          Writes an ESRI shapefile formatted version of this geometry to the specified buffer.
 int getESRIShapeSizeEx2(int exportFlags)
          The size of the buffer (in bytes) that will be required to hold the ESRI shapefile version of the geometry.
 void importFromESRIShapeEx(int importFlags, int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry based upon the contents of the input ESRI shapefile formatted buffer.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geometry.IESRIShapeProxy
attachToESRIShape, exportToESRIShape, exportToESRIShapeEx, getESRIShapeSize, getESRIShapeSizeEx, getModifierOffset, importFromESRIShape, nonTrustedImportFromESRIShape, queryESRIShapeType
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.geometry.IESRIShape
attachToESRIShape, exportToESRIShape, exportToESRIShapeEx, getESRIShapeSize, getESRIShapeSizeEx, getModifierOffset, importFromESRIShape, nonTrustedImportFromESRIShape, queryESRIShapeType
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IESRIShape2Proxy

public IESRIShape2Proxy()

IESRIShape2Proxy

public IESRIShape2Proxy(Object obj)
                 throws IOException
Throws:
IOException

IESRIShape2Proxy

protected IESRIShape2Proxy(Object obj,
                           String iid)
                    throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class IESRIShapeProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IESRIShapeProxy
Throws:
IOException

getESRIShapeSizeEx2

public int getESRIShapeSizeEx2(int exportFlags)
                        throws IOException,
                               AutomationException
The size of the buffer (in bytes) that will be required to hold the ESRI shapefile version of the geometry. The value may exceed the minimum required size. exportFlags is a combination of esriShapeExportFlags values.

Product Availability

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

Specified by:
getESRIShapeSizeEx2 in interface IESRIShape2
Parameters:
exportFlags - The exportFlags (in)
Returns:
The cBytes
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportToESRIShapeEx2

public void exportToESRIShapeEx2(int exportFlags,
                                 int[] byteCountInOut,
                                 byte[] byteBuffer)
                          throws IOException,
                                 AutomationException
Writes an ESRI shapefile formatted version of this geometry to the specified buffer. Returns the exact number of bytes written to the buffer. exportFlags is a combination of esriShapeExportFlags values.

Remarks

Note: exportFlags is a combination of esriShapeExportFlags values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportToESRIShapeEx2 in interface IESRIShape2
Parameters:
exportFlags - The exportFlags (in)
byteCountInOut - The byteCountInOut (in/out: use single element array)
byteBuffer - An unsigned byte (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

importFromESRIShapeEx

public void importFromESRIShapeEx(int importFlags,
                                  int[] byteCountInOut,
                                  byte[] byteBuffer)
                           throws IOException,
                                  AutomationException
Defines this geometry based upon the contents of the input ESRI shapefile formatted buffer. Returns the exact number of bytes read from the buffer. importFlags is a combination of esriShapeImportFlags values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
importFromESRIShapeEx in interface IESRIShape2
Parameters:
importFlags - The importFlags (in)
byteCountInOut - The byteCountInOut (in/out: use single element array)
byteBuffer - An unsigned byte (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.