|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.system.XMLSerializer
public class XMLSerializer
An XML serializer and deserializer of objects.
IXMLStream,
IXMLWriter,
IXMLReader,
Serialized Form| Constructor Summary | |
|---|---|
XMLSerializer()
Constructs a XMLSerializer using ArcGIS Engine. |
|
XMLSerializer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. XMLSerializer theXMLSerializer = (XMLSerializer) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
Object |
loadFromString(String xML,
IPropertySet environment,
IXMLFlags flags)
Loads an object from an XML string. |
Object |
readObject(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags)
Reads an object from XML. |
Object |
readObjectByType(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags,
String typeNamespace,
String typeName)
Reads an object from XML given an XML type. |
String |
saveToString(Object obj,
IPropertySet environment,
IXMLFlags flags)
Saves an object to an XML string. |
void |
writeObject(IXMLWriter pWriter,
IPropertySet environment,
IXMLFlags flags,
String elementName,
String elementNamespaceURI,
Object obj)
Writes an object as XML. |
| 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 XMLSerializer()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public XMLSerializer(Object obj)
throws IOException
XMLSerializer theXMLSerializer = (XMLSerializer) obj;
obj to XMLSerializer.
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 void writeObject(IXMLWriter pWriter,
IPropertySet environment,
IXMLFlags flags,
String elementName,
String elementNamespaceURI,
Object obj)
throws IOException,
AutomationException
writeObject in interface IXMLSerializerpWriter - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object readObject(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags)
throws IOException,
AutomationException
readObject in interface IXMLSerializerpReader - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object loadFromString(String xML,
IPropertySet environment,
IXMLFlags flags)
throws IOException,
AutomationException
loadFromString in interface IXMLSerializerxML - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String saveToString(Object obj,
IPropertySet environment,
IXMLFlags flags)
throws IOException,
AutomationException
saveToString in interface IXMLSerializerobj - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object readObjectByType(IXMLReader pReader,
IPropertySet environment,
IXMLFlags flags,
String typeNamespace,
String typeName)
throws IOException,
AutomationException
readObjectByType in interface IXMLSerializerpReader - 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)
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 | ||||||||