public class XMLSerializer extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IXMLSerializer, ISupportErrorInfo
Description 'An XML serializer and deserializer of objects.' 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 =
IID, IIDdea199d0_371c_4955_844c_b67705e1edb2, xxDummy
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
Constructor and Description |
---|
XMLSerializer()
Constructs a XMLSerializer using ArcGIS Engine.
|
XMLSerializer(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
XMLSerializer theXMLSerializer = (XMLSerializer) obj; |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
static java.lang.String |
getClsid()
getClsid.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
java.lang.Object |
loadFromString(java.lang.String xML,
IPropertySet environment,
IXMLFlags flags)
Loads an object from an XML string.
|
java.lang.Object |
readObject(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags)
Reads an object from XML.
|
java.lang.Object |
readObjectByType(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags,
java.lang.String typeNamespace,
java.lang.String typeName)
Reads an object from XML given an XML type.
|
void |
release()
Release this COM object reference
|
java.lang.String |
saveToString(java.lang.Object obj,
IPropertySet environment,
IXMLFlags flags)
Saves an object to an XML string.
|
void |
writeObject(IXMLWriter pWriter,
IPropertySet environment,
IXMLFlags flags,
java.lang.String elementName,
java.lang.String elementNamespaceURI,
java.lang.Object obj)
Writes an object as XML.
|
public XMLSerializer() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic XMLSerializer(java.lang.Object obj) throws java.io.IOException
XMLSerializer theXMLSerializer = (XMLSerializer) obj;
obj
to XMLSerializer
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void writeObject(IXMLWriter pWriter, IPropertySet environment, IXMLFlags flags, java.lang.String elementName, java.lang.String elementNamespaceURI, java.lang.Object obj) throws java.io.IOException, AutomationException
writeObject
in interface IXMLSerializer
pWriter
- A reference to a com.esri.arcgis.system.IXMLWriter (in)environment
- A reference to a com.esri.arcgis.system.IPropertySet (in)flags
- A reference to a com.esri.arcgis.system.IXMLFlags (in)elementName
- The elementName (in)elementNamespaceURI
- The elementNamespaceURI (in)obj
- A reference to another Object (IUnknown) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object readObject(IXMLReader pReader, IPropertySet environment, IXMLFlags flags) throws java.io.IOException, AutomationException
readObject
in interface IXMLSerializer
pReader
- A reference to a com.esri.arcgis.system.IXMLReader (in)environment
- A reference to a com.esri.arcgis.system.IPropertySet (in)flags
- A reference to a com.esri.arcgis.system.IXMLFlags (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object loadFromString(java.lang.String xML, IPropertySet environment, IXMLFlags flags) throws java.io.IOException, AutomationException
loadFromString
in interface IXMLSerializer
xML
- The xML (in)environment
- A reference to a com.esri.arcgis.system.IPropertySet (in)flags
- A reference to a com.esri.arcgis.system.IXMLFlags (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String saveToString(java.lang.Object obj, IPropertySet environment, IXMLFlags flags) throws java.io.IOException, AutomationException
saveToString
in interface IXMLSerializer
obj
- A reference to another Object (IUnknown) (in)environment
- A reference to a com.esri.arcgis.system.IPropertySet (in)flags
- A reference to a com.esri.arcgis.system.IXMLFlags (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object readObjectByType(IXMLReader pReader, IPropertySet environment, IXMLFlags flags, java.lang.String typeNamespace, java.lang.String typeName) throws java.io.IOException, AutomationException
readObjectByType
in interface IXMLSerializer
pReader
- A reference to a com.esri.arcgis.system.IXMLReader (in)environment
- A reference to a com.esri.arcgis.system.IPropertySet (in)flags
- A reference to a com.esri.arcgis.system.IXMLFlags (in)typeNamespace
- The typeNamespace (in)typeName
- The typeName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.