com.esri.arcgis.geodatabase
Interface IExternalSerializerGdb

All Superinterfaces:
Serializable
All Known Implementing Classes:
JSONConverterGdb, JSONSerializerGdb

public interface IExternalSerializerGdb
extends Serializable

Provides high-level serialization methods for AMF and JSON formats.

Product Availability

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


Method Summary
 byte[] getErrorObject(String propname, int code, String message, IStringArray details)
          Convenience method.
 void writeErrorObject(String propname, int code, String message, IStringArray details)
          Writes error object.
 void writeGeometry(String propname, IGeometry pGeom)
          Writes geometry object.
 void writeRecordSet(String propname, IRecordSet pRecordset, IGeometryResultOptions pGeomOpt)
          Writes feature recordset.
 void writeRow(String propname, IRow pRow, IFields pFields, int[] rowFieldIndexes, IGeometryResultOptions pGeomOpt)
          Writes feature row object
 void writeSpatialReference(String propname, ISpatialReference pSR)
          Writes spatial reference object.
 

Method Detail

writeSpatialReference

void writeSpatialReference(String propname,
                           ISpatialReference pSR)
                           throws IOException,
                                  AutomationException
Writes spatial reference object. Pass NULL as propname to write standalone JSON object.

Product Availability

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

Parameters:
propname - The propname (in)
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeGeometry

void writeGeometry(String propname,
                   IGeometry pGeom)
                   throws IOException,
                          AutomationException
Writes geometry object.

Product Availability

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

Parameters:
propname - The propname (in)
pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeRow

void writeRow(String propname,
              IRow pRow,
              IFields pFields,
              int[] rowFieldIndexes,
              IGeometryResultOptions pGeomOpt)
              throws IOException,
                     AutomationException
Writes feature row object

Product Availability

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

Parameters:
propname - The propname (in)
pRow - A reference to a com.esri.arcgis.geodatabase.IRow (in)
pFields - A reference to a com.esri.arcgis.geodatabase.IFields (in)
rowFieldIndexes - The rowFieldIndexes (in)
pGeomOpt - A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeRecordSet

void writeRecordSet(String propname,
                    IRecordSet pRecordset,
                    IGeometryResultOptions pGeomOpt)
                    throws IOException,
                           AutomationException
Writes feature recordset.

Product Availability

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

Parameters:
propname - The propname (in)
pRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (in)
pGeomOpt - A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeErrorObject

void writeErrorObject(String propname,
                      int code,
                      String message,
                      IStringArray details)
                      throws IOException,
                             AutomationException
Writes error object.

Product Availability

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

Parameters:
propname - The propname (in)
code - The code (in)
message - The message (in)
details - A reference to a com.esri.arcgis.system.IStringArray (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getErrorObject

byte[] getErrorObject(String propname,
                      int code,
                      String message,
                      IStringArray details)
                      throws IOException,
                             AutomationException
Convenience method. Creates and returns error object as byte SAFEARRAY.

Product Availability

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

Parameters:
propname - The propname (in)
code - The code (in)
message - The message (in)
details - A reference to a com.esri.arcgis.system.IStringArray (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.