com.esri.arcgis.geometry
Class IESRIShapeProxy

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

public class IESRIShapeProxy
extends com.esri.arcgis.interop.Dispatch
implements IESRIShape, java.io.Serializable

Internal use class Proxy for COM Interface 'IESRIShape'. Generated 3/19/2015 1:20:58 PM from 'C:\ArcGIS\COM\esriGeometry.olb'

Description: 'Provides access to members that Import/Export ArcObjects geometries to Esri shapefile format.' 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 =

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Fields inherited from interface com.esri.arcgis.geometry.IESRIShape
IID, IID7b91ff70_53a9_11d0_a8f3_00608c85ede5
 
Constructor Summary
  IESRIShapeProxy()
          For internal use only
  IESRIShapeProxy(java.lang.Object obj)
           
protected IESRIShapeProxy(java.lang.Object obj, java.lang.String iid)
           
  IESRIShapeProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
protected IESRIShapeProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
           
 void attachToESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Takes ownership of the input Esri shapefile format buffer.
 void exportToESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Writes an Esri shapefile formatted version of this geometry to the specified buffer.
 void exportToESRIShapeEx(int modifiersToAllow, boolean useArcViewNaNs, int[] byteCountInOut, byte[] byteBuffer)
          Writes an Esri shapefile formatted version of this geometry to the specified buffer.
 int getESRIShapeSize()
          The size of the buffer, in bytes, that will be required to hold the Esri shapefile formatted version of the geometry.
 int getESRIShapeSizeEx(int modifiersToAllow)
          The size of the buffer (in bytes) that will be required to hold the Esri shapefile version of the geometry.
 void getModifierOffset(int modifierType, int[] offset)
          Finds out the byte offsets within a shape buffer at which an exported attribute can be found.
 void importFromESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry from the input Esri shapefile formatted buffer.
 void nonTrustedImportFromESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry from the contents of the input Esri shapefile formatted buffer.
 void queryESRIShapeType(int basicShapeType, int[] shapeModifiers)
          Returns the basic type and modifiers (combination of esriShapeModifiers) that define the geometry's shape type, as it was last exported.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
           
 
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
 

Field Detail

targetClass

public static final java.lang.Class targetClass

noncastable

public boolean noncastable
Constructor Detail

IESRIShapeProxy

public IESRIShapeProxy(java.lang.String CLSID,
                       java.lang.String host,
                       com.esri.arcgis.interop.AuthInfo authInfo)
                throws java.net.UnknownHostException,
                       java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

IESRIShapeProxy

public IESRIShapeProxy()
For internal use only


IESRIShapeProxy

public IESRIShapeProxy(java.lang.Object obj)
                throws java.io.IOException
Throws:
java.io.IOException

IESRIShapeProxy

protected IESRIShapeProxy(java.lang.Object obj,
                          java.lang.String iid)
                   throws java.io.IOException
Throws:
java.io.IOException

IESRIShapeProxy

protected IESRIShapeProxy(java.lang.String CLSID,
                          java.lang.String iid,
                          java.lang.String host,
                          com.esri.arcgis.interop.AuthInfo authInfo)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

queryESRIShapeType

public void queryESRIShapeType(int basicShapeType,
                               int[] shapeModifiers)
                        throws java.io.IOException,
                               AutomationException
Returns the basic type and modifiers (combination of esriShapeModifiers) that define the geometry's shape type, as it was last exported.

Specified by:
queryESRIShapeType in interface IESRIShape
Parameters:
basicShapeType - A com.esri.arcgis.geometry.esriShapeType constant (in)
shapeModifiers - The shapeModifiers (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getESRIShapeSize

public int getESRIShapeSize()
                     throws java.io.IOException,
                            AutomationException
The size of the buffer, in bytes, that will be required to hold the Esri shapefile formatted version of the geometry. The value may exceed the minimum required size.

Specified by:
getESRIShapeSize in interface IESRIShape
Returns:
The cBytes
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getESRIShapeSizeEx

public int getESRIShapeSizeEx(int modifiersToAllow)
                       throws java.io.IOException,
                              AutomationException
The size of the buffer (in bytes) that will be required to hold the Esri shapefile version of the geometry. Only attributes specified by modifiers to allow will be exported. The value may exceed the minimum required size. ModifiersToAllow is a combination of e?T?_?

Specified by:
getESRIShapeSizeEx in interface IESRIShape
Parameters:
modifiersToAllow - The modifiersToAllow (in)
Returns:
The cBytes
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

importFromESRIShape

public void importFromESRIShape(int[] byteCountInOut,
                                byte[] byteBuffer)
                         throws java.io.IOException,
                                AutomationException
Defines this geometry from the input Esri shapefile formatted buffer. Assumes the buffer describes a topologically correct geometry. Returns the exact number of bytes read from the buffer.

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

nonTrustedImportFromESRIShape

public void nonTrustedImportFromESRIShape(int[] byteCountInOut,
                                          byte[] byteBuffer)
                                   throws java.io.IOException,
                                          AutomationException
Defines this geometry from the contents of the input Esri shapefile formatted buffer. Does not assume that the buffer describes a topological correct geometry. Returns the exact number of bytes read from the buffer.

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

attachToESRIShape

public void attachToESRIShape(int[] byteCountInOut,
                              byte[] byteBuffer)
                       throws java.io.IOException,
                              AutomationException
Takes ownership of the input Esri shapefile format buffer. The geometry must be deleted, set to empty, edited, or imported from/attached to a different buffer before the buffer can be re-used.

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

exportToESRIShape

public void exportToESRIShape(int[] byteCountInOut,
                              byte[] byteBuffer)
                       throws java.io.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.

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

exportToESRIShapeEx

public void exportToESRIShapeEx(int modifiersToAllow,
                                boolean useArcViewNaNs,
                                int[] byteCountInOut,
                                byte[] byteBuffer)
                         throws java.io.IOException,
                                AutomationException
Writes an Esri shapefile formatted version of this geometry to the specified buffer. Only exports attributes specified by modifiersToAllow (combination of esriShapeExportFlags values.). Returns the exact number of bytes written to the buffer.

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

getModifierOffset

public void getModifierOffset(int modifierType,
                              int[] offset)
                       throws java.io.IOException,
                              AutomationException
Finds out the byte offsets within a shape buffer at which an exported attribute can be found. Only works if the shape hasn't changed since the last call to ExportToESRIShape or ExportToESRIShapeEx.

Specified by:
getModifierOffset in interface IESRIShape
Parameters:
modifierType - A com.esri.arcgis.geometry.esriShapeModifiers constant (in)
offset - The offset (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.