|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.JSONConverterGdb
public class JSONConverterGdb
All-in-one JSON conversion for the GeoDatabase library. Supports all previous JSON interfaces in the GeoDatabase, namely IJSONSerializer, IJSONDeserializer, IExternalSerializerGdb, IExternalDeserializerGdb
| Constructor Summary | |
|---|---|
JSONConverterGdb()
Constructs a JSONConverterGdb using ArcGIS Engine. |
|
JSONConverterGdb(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. JSONConverterGdb theJSONConverterGdb = (JSONConverterGdb) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
byte[] |
getErrorObject(String propname,
int code,
String message,
IStringArray details)
Convenience method. |
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 |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
queryJSONDomain(IDomain pDomain,
IJSONObject pDomainJO)
Query domain info from IDomain and populate IJSONObject. |
IGeometry |
readGeometry(int geomType)
Reads geometry object. |
Object |
readObject(GUID riid,
IPropertySet pProps)
Deserialize an object. |
void |
readRecordSet(IJSONReader pReader,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
Reads RecordSet object from IJSONReader. |
ISpatialReference |
readSpatialReference()
Reads spatial reference object. |
void |
toRecordSet(IJSONObject pObj,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
Reads RecordSet object from IJSONObject. |
void |
writeErrorObject(String propname,
int code,
String message,
IStringArray details)
Writes error object. |
void |
writeGeometry(String propname,
IGeometry pGeom)
Writes geometry object. |
void |
writeObject(Object pUnk,
IPropertySet pProps)
Serializes an object. |
void |
writeRecordSet(IJSONWriter pWriter,
IJSONConverterGeometry pGeomConv,
IPropertySet pProps,
String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt,
boolean bWriteEndOfObj)
Writes RecordSet to IJSONWriter. |
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. |
| 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 |
|---|
public JSONConverterGdb()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public JSONConverterGdb(Object obj)
throws IOException
JSONConverterGdb theJSONConverterGdb = (JSONConverterGdb) obj;
obj to JSONConverterGdb.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public IJSONWriter getWriter()
throws IOException,
AutomationException
getWriter in interface IJSONSerializerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initSerializer(IJSONWriter pWriter,
IPropertySet pProps)
throws IOException,
AutomationException
initSerializer in interface IJSONSerializerpWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeObject(Object pUnk,
IPropertySet pProps)
throws IOException,
AutomationException
writeObject in interface IExternalSerializerpUnk - A reference to another Object (IUnknown) (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IJSONReader getReader()
throws IOException,
AutomationException
getReader in interface IJSONDeserializerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initDeserializer(IJSONReader pReader,
IPropertySet pProps)
throws IOException,
AutomationException
initDeserializer in interface IJSONDeserializerpReader - A reference to a com.esri.arcgis.system.IJSONReader (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object readObject(GUID riid,
IPropertySet pProps)
throws IOException,
AutomationException
readObject in interface IExternalDeserializerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeSpatialReference(String propname,
ISpatialReference pSR)
throws IOException,
AutomationException
writeSpatialReference in interface IExternalSerializerGdbpropname - The propname (in)pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeGeometry(String propname,
IGeometry pGeom)
throws IOException,
AutomationException
writeGeometry in interface IExternalSerializerGdbpropname - The propname (in)pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeRow(String propname,
IRow pRow,
IFields pFields,
int[] rowFieldIndexes,
IGeometryResultOptions pGeomOpt)
throws IOException,
AutomationException
writeRow in interface IExternalSerializerGdbpropname - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeRecordSet(String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt)
throws IOException,
AutomationException
writeRecordSet in interface IExternalSerializerGdbpropname - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeErrorObject(String propname,
int code,
String message,
IStringArray details)
throws IOException,
AutomationException
writeErrorObject in interface IExternalSerializerGdbpropname - The propname (in)code - The code (in)message - The message (in)details - A reference to a com.esri.arcgis.system.IStringArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte[] getErrorObject(String propname,
int code,
String message,
IStringArray details)
throws IOException,
AutomationException
getErrorObject in interface IExternalSerializerGdbpropname - The propname (in)code - The code (in)message - The message (in)details - A reference to a com.esri.arcgis.system.IStringArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISpatialReference readSpatialReference()
throws IOException,
AutomationException
readSpatialReference in interface IExternalDeserializerGdbIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeometry readGeometry(int geomType)
throws IOException,
AutomationException
readGeometry in interface IExternalDeserializerGdbgeomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void readRecordSet(IJSONReader pReader,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
throws IOException,
AutomationException
readRecordSet in interface IJSONConverterGdbpReader - A reference to a com.esri.arcgis.system.IJSONReader (in)pDefaultSchema - A reference to a com.esri.arcgis.geodatabase.IFields (in)pConversionProps - A reference to a com.esri.arcgis.system.IPropertySet (in)ppRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (out: use single element array)ppOriginalToNewFieldMap - A reference to a com.esri.arcgis.system.IPropertySet (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void toRecordSet(IJSONObject pObj,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
throws IOException,
AutomationException
toRecordSet in interface IJSONConverterGdbpObj - A reference to a com.esri.arcgis.system.IJSONObject (in)pDefaultSchema - A reference to a com.esri.arcgis.geodatabase.IFields (in)pConversionProps - A reference to a com.esri.arcgis.system.IPropertySet (in)ppRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (out: use single element array)ppOriginalToNewFieldMap - A reference to a com.esri.arcgis.system.IPropertySet (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeRecordSet(IJSONWriter pWriter,
IJSONConverterGeometry pGeomConv,
IPropertySet pProps,
String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt,
boolean bWriteEndOfObj)
throws IOException,
AutomationException
writeRecordSet in interface IJSONConverterGdbpWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)pGeomConv - A reference to a com.esri.arcgis.geometry.IJSONConverterGeometry (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)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)bWriteEndOfObj - The bWriteEndOfObj (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryJSONDomain(IDomain pDomain,
IJSONObject pDomainJO)
throws IOException,
AutomationException
queryJSONDomain in interface IJSONConverterGdbpDomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)pDomainJO - A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||