com.esri.arcgis.system
Class XMLSerializer

java.lang.Object
  extended by com.esri.arcgis.system.XMLSerializer
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, IXMLSerializer, java.io.Serializable

public class XMLSerializer
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLSerializer, ISupportErrorInfo

COM Class 'XMLSerializer'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IXMLSerializer
IID, IIDdea199d0_371c_4955_844c_b67705e1edb2, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
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;
 
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.
 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 a XMLSerializer.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSerializer

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

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

XMLSerializer

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

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

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 XMLSerializer.

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

writeObject

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
Writes an object as XML.

Specified by:
writeObject in interface IXMLSerializer
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readObject

public java.lang.Object readObject(IXMLReader pReader,
                                   IPropertySet environment,
                                   IXMLFlags flags)
                            throws java.io.IOException,
                                   AutomationException
Reads an object from XML.

Specified by:
readObject in interface IXMLSerializer
Parameters:
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)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadFromString

public java.lang.Object loadFromString(java.lang.String xML,
                                       IPropertySet environment,
                                       IXMLFlags flags)
                                throws java.io.IOException,
                                       AutomationException
Loads an object from an XML string.

Specified by:
loadFromString in interface IXMLSerializer
Parameters:
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)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveToString

public java.lang.String saveToString(java.lang.Object obj,
                                     IPropertySet environment,
                                     IXMLFlags flags)
                              throws java.io.IOException,
                                     AutomationException
Saves an object to an XML string.

Specified by:
saveToString in interface IXMLSerializer
Parameters:
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)
Returns:
The xML
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readObjectByType

public java.lang.Object readObjectByType(IXMLReader pReader,
                                         IPropertySet environment,
                                         IXMLFlags flags,
                                         java.lang.String typeNamespace,
                                         java.lang.String typeName)
                                  throws java.io.IOException,
                                         AutomationException
Reads an object from XML given an XML type.

Specified by:
readObjectByType in interface IXMLSerializer
Parameters:
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)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.