com.esri.arcgis.geometry
Class JSONConverterGeometry

java.lang.Object
  extended by com.esri.arcgis.geometry.JSONConverterGeometry
All Implemented Interfaces:
IJSONConverterGeometry, com.esri.arcgis.interop.RemoteObjRef, IExternalDeserializer, IExternalSerializer, IJSONDeserializer, IJSONSerializer, java.io.Serializable

public class JSONConverterGeometry
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IJSONSerializer, IJSONDeserializer, IJSONConverterGeometry

COM Class 'JSONConverterGeometry'. Generated 3/19/2015 1:20:44 PM from 'C:\ArcGIS\COM\esriGeometry.olb'

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
 
Fields inherited from interface com.esri.arcgis.system.IJSONSerializer
IID, IIDab718cdf_0c06_4d18_9aa4_a6c54b2bc28c, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IExternalSerializer
IIDe760e960_f144_4b30_930b_5f8056e4e305
 
Fields inherited from interface com.esri.arcgis.system.IJSONDeserializer
IID, IID1e6dc0eb_5c8a_4401_a8af_bb5602ddfb7e, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IExternalDeserializer
IID09134de8_4147_4564_82bd_6cc18414c389
 
Fields inherited from interface com.esri.arcgis.geometry.IJSONConverterGeometry
IID, IID7cc69669_7023_4dd6_9cdc_3a75325673d7, xxDummy
 
Constructor Summary
JSONConverterGeometry()
          Constructs a JSONConverterGeometry using ArcGIS Engine.
JSONConverterGeometry(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONConverterGeometry theJSONConverterGeometry = (JSONConverterGeometry) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IJSONReader getReader()
          Obtains JSON Reader.
 IJSONWriter getWriter()
          Obtains JSON Writer.
 int hashCode()
          the hashcode for this object
 void initDeserializer(IJSONReader pReader, IPropertySet pProps)
          Write deserialization options.
 void initSerializer(IJSONWriter pWriter, IPropertySet pProps)
          Writes serialization options.
 void queryJSONEnvelope(IEnvelope pEnvelope, boolean skip_spref, IJSONObject pJSON)
          Queries spatial reference and populates existing IJSONObject
 void queryJSONGeometry(IGeometry pGeom, boolean skip_spref, IJSONObject pJSON)
          Queries geometry and populates existing IJSONObject
 void queryJSONGeoTransformation(IGeoTransformation pSR, IJSONObject pJSON)
          Queries a geographic (datum) transformation object and populates existing IJSONObject
 void queryJSONSpatialReference(ISpatialReference pSR, IJSONObject pJSON)
          Queries spatial reference and populates existing IJSONObject
 IEnvelope readEnvelope(IJSONReader pReader)
          Reads point object.
 IGeometry readGeometry(IJSONReader pReader, int geomType, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads geometry object.
 IGeoTransformation readGeoTransformation(IJSONReader pReader)
          Reads a geographic (datum) transformation object.
 IMultipoint readMultipoint(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads point object.
 java.lang.Object readObject(GUID riid, IPropertySet pProps)
          Deserialize an object.
 IPoint readPoint(IJSONReader pReader)
          Reads point object.
 IPolygon readPolygon(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads point object.
 IPolyline readPolyline(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads point object.
 ISpatialReference readSpatialReference(IJSONReader pReader)
          Reads spatial reference object.
 void release()
          Release a JSONConverterGeometry.
 IEnvelope toEnvelope(IJSONObject pJSONObject)
          Reads envelope from a JSON object.
 IGeometry toGeometry(IJSONObject pJSONObject, int geomType, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads geometry object from JSON object.
 IGeoTransformation toGeoTransformation(IJSONObject pJSONObject)
          Reads a geographic (datum) transformation object from a JSON object.
 IMultipoint toMultipoint(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads multipoint from a JSON object.
 IPoint toPoint(IJSONObject pJSONObject)
          Reads IPoint from a JSON object.
 IPolygon toPolygon(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads polygon from a JSON object.
 IPolyline toPolyline(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs)
          Reads polyline from a JSON object.
 ISpatialReference toSpatialReference(IJSONObject pJSONObject)
          Reads spatial reference from a JSON object.
 void writeGeometry(IJSONWriter pWriter, java.lang.String propname, IGeometry pGeom, boolean skip_spref)
          Writes geometry object.
 void writeGeoTransformation(IJSONWriter pWriter, java.lang.String propname, IGeoTransformation pSR)
          Writes a geographic (datum) transformation object.
 void writeObject(java.lang.Object pUnk, IPropertySet pProps)
          Serializes an object.
 void writeSpatialReference(IJSONWriter pWriter, java.lang.String propname, ISpatialReference pSR)
          Writes spatial reference object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONConverterGeometry

public JSONConverterGeometry()
                      throws java.io.IOException,
                             java.net.UnknownHostException
Constructs a JSONConverterGeometry using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

JSONConverterGeometry

public JSONConverterGeometry(java.lang.Object obj)
                      throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
JSONConverterGeometry theJSONConverterGeometry = (JSONConverterGeometry) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a JSONConverterGeometry.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getWriter

public IJSONWriter getWriter()
                      throws java.io.IOException,
                             AutomationException
Obtains JSON Writer.

Specified by:
getWriter in interface IJSONSerializer
Returns:
A reference to a com.esri.arcgis.system.IJSONWriter
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initSerializer

public void initSerializer(IJSONWriter pWriter,
                           IPropertySet pProps)
                    throws java.io.IOException,
                           AutomationException
Writes serialization options.

Specified by:
initSerializer in interface IJSONSerializer
Parameters:
pWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeObject

public void writeObject(java.lang.Object pUnk,
                        IPropertySet pProps)
                 throws java.io.IOException,
                        AutomationException
Serializes an object.

Specified by:
writeObject in interface IExternalSerializer
Parameters:
pUnk - A reference to another Object (IUnknown) (in)
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReader

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

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

initDeserializer

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

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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readObject

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

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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeSpatialReference

public void writeSpatialReference(IJSONWriter pWriter,
                                  java.lang.String propname,
                                  ISpatialReference pSR)
                           throws java.io.IOException,
                                  AutomationException
Writes spatial reference object. Pass NULL as propname to write a standalone JSON object.

Specified by:
writeSpatialReference in interface IJSONConverterGeometry
Parameters:
pWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)
propname - The propname (in)
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeGeoTransformation

public void writeGeoTransformation(IJSONWriter pWriter,
                                   java.lang.String propname,
                                   IGeoTransformation pSR)
                            throws java.io.IOException,
                                   AutomationException
Writes a geographic (datum) transformation object. Pass NULL as propname to write a standalone JSON object.

Specified by:
writeGeoTransformation in interface IJSONConverterGeometry
Parameters:
pWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)
propname - The propname (in)
pSR - A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeGeometry

public void writeGeometry(IJSONWriter pWriter,
                          java.lang.String propname,
                          IGeometry pGeom,
                          boolean skip_spref)
                   throws java.io.IOException,
                          AutomationException
Writes geometry object.

Specified by:
writeGeometry in interface IJSONConverterGeometry
Parameters:
pWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)
propname - The propname (in)
pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
skip_spref - The skip_spref (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryJSONSpatialReference

public void queryJSONSpatialReference(ISpatialReference pSR,
                                      IJSONObject pJSON)
                               throws java.io.IOException,
                                      AutomationException
Queries spatial reference and populates existing IJSONObject

Specified by:
queryJSONSpatialReference in interface IJSONConverterGeometry
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pJSON - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryJSONGeoTransformation

public void queryJSONGeoTransformation(IGeoTransformation pSR,
                                       IJSONObject pJSON)
                                throws java.io.IOException,
                                       AutomationException
Queries a geographic (datum) transformation object and populates existing IJSONObject

Specified by:
queryJSONGeoTransformation in interface IJSONConverterGeometry
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
pJSON - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryJSONEnvelope

public void queryJSONEnvelope(IEnvelope pEnvelope,
                              boolean skip_spref,
                              IJSONObject pJSON)
                       throws java.io.IOException,
                              AutomationException
Queries spatial reference and populates existing IJSONObject

Specified by:
queryJSONEnvelope in interface IJSONConverterGeometry
Parameters:
pEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
skip_spref - The skip_spref (in)
pJSON - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryJSONGeometry

public void queryJSONGeometry(IGeometry pGeom,
                              boolean skip_spref,
                              IJSONObject pJSON)
                       throws java.io.IOException,
                              AutomationException
Queries geometry and populates existing IJSONObject

Specified by:
queryJSONGeometry in interface IJSONConverterGeometry
Parameters:
pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
skip_spref - The skip_spref (in)
pJSON - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readSpatialReference

public ISpatialReference readSpatialReference(IJSONReader pReader)
                                       throws java.io.IOException,
                                              AutomationException
Reads spatial reference object.

Specified by:
readSpatialReference in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readGeoTransformation

public IGeoTransformation readGeoTransformation(IJSONReader pReader)
                                         throws java.io.IOException,
                                                AutomationException
Reads a geographic (datum) transformation object.

Specified by:
readGeoTransformation in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeoTransformation
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readGeometry

public IGeometry readGeometry(IJSONReader pReader,
                              int geomType,
                              boolean bDefaultHasZs,
                              boolean bDefaultHasMs)
                       throws java.io.IOException,
                              AutomationException
Reads geometry object. If provided geometry type is esriUnknown, tries to deduce geometry type from the JSON structure.

Specified by:
readGeometry in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
geomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readPoint

public IPoint readPoint(IJSONReader pReader)
                 throws java.io.IOException,
                        AutomationException
Reads point object.

Specified by:
readPoint in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readMultipoint

public IMultipoint readMultipoint(IJSONReader pReader,
                                  boolean bDefaultHasZs,
                                  boolean bDefaultHasMs)
                           throws java.io.IOException,
                                  AutomationException
Reads point object.

Specified by:
readMultipoint in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IMultipoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readPolygon

public IPolygon readPolygon(IJSONReader pReader,
                            boolean bDefaultHasZs,
                            boolean bDefaultHasMs)
                     throws java.io.IOException,
                            AutomationException
Reads point object.

Specified by:
readPolygon in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolygon
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readPolyline

public IPolyline readPolyline(IJSONReader pReader,
                              boolean bDefaultHasZs,
                              boolean bDefaultHasMs)
                       throws java.io.IOException,
                              AutomationException
Reads point object.

Specified by:
readPolyline in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolyline
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readEnvelope

public IEnvelope readEnvelope(IJSONReader pReader)
                       throws java.io.IOException,
                              AutomationException
Reads point object.

Specified by:
readEnvelope in interface IJSONConverterGeometry
Parameters:
pReader - A reference to a com.esri.arcgis.system.IJSONReader (in)
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toGeometry

public IGeometry toGeometry(IJSONObject pJSONObject,
                            int geomType,
                            boolean bDefaultHasZs,
                            boolean bDefaultHasMs)
                     throws java.io.IOException,
                            AutomationException
Reads geometry object from JSON object.

Specified by:
toGeometry in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
geomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toEnvelope

public IEnvelope toEnvelope(IJSONObject pJSONObject)
                     throws java.io.IOException,
                            AutomationException
Reads envelope from a JSON object.

Specified by:
toEnvelope in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toSpatialReference

public ISpatialReference toSpatialReference(IJSONObject pJSONObject)
                                     throws java.io.IOException,
                                            AutomationException
Reads spatial reference from a JSON object.

Specified by:
toSpatialReference in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toGeoTransformation

public IGeoTransformation toGeoTransformation(IJSONObject pJSONObject)
                                       throws java.io.IOException,
                                              AutomationException
Reads a geographic (datum) transformation object from a JSON object.

Specified by:
toGeoTransformation in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeoTransformation
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toPoint

public IPoint toPoint(IJSONObject pJSONObject)
               throws java.io.IOException,
                      AutomationException
Reads IPoint from a JSON object.

Specified by:
toPoint in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toMultipoint

public IMultipoint toMultipoint(IJSONObject pJSONObject,
                                boolean bDefaultHasZs,
                                boolean bDefaultHasMs)
                         throws java.io.IOException,
                                AutomationException
Reads multipoint from a JSON object.

Specified by:
toMultipoint in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IMultipoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toPolygon

public IPolygon toPolygon(IJSONObject pJSONObject,
                          boolean bDefaultHasZs,
                          boolean bDefaultHasMs)
                   throws java.io.IOException,
                          AutomationException
Reads polygon from a JSON object.

Specified by:
toPolygon in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolygon
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toPolyline

public IPolyline toPolyline(IJSONObject pJSONObject,
                            boolean bDefaultHasZs,
                            boolean bDefaultHasMs)
                     throws java.io.IOException,
                            AutomationException
Reads polyline from a JSON object.

Specified by:
toPolyline in interface IJSONConverterGeometry
Parameters:
pJSONObject - A reference to a com.esri.arcgis.system.IJSONObject (in)
bDefaultHasZs - The bDefaultHasZs (in)
bDefaultHasMs - The bDefaultHasMs (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolyline
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.