|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.system.XMLWriter
public class XMLWriter
An XML sequential document writer.
Use the XMLWriter coclass when you wish to provide access to members that control the sequential writing of XML. XMLStream needs to be hooked-up in order to write to the stream.
'*** Create XmlStream and XmlWriter ***
Dim pStream As IXMLStream
Set pStream = New XMLStream
Dim pWriter As IXMLWriter
Set pWriter = New XMLWriter
pWriter.WriteTo pStream
'*** Create XmlSerializer ***
Dim pSerializer As IXMLSerializer
Set pSerializer = New XMLSerializer
pSerializer.WriteObject pWriter, Nothing, Nothing, "", "", pPoint
See the IXMLReader interface for more on getting information about writing of objects.
IXMLStream,
IXMLWriter,
IXMLReader,
IXMLSerialize,
Serialized Form| Constructor Summary | |
|---|---|
XMLWriter()
Constructs a XMLWriter using ArcGIS Engine. |
|
XMLWriter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. XMLWriter theXMLWriter = (XMLWriter) 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 |
String |
lookupNamespace(String uri)
Obtains the declared namespace prefix for a namespace. |
void |
writeBinary(byte[] value)
Writes an element value as a binary array. |
void |
writeBoolean(boolean value)
Writes an element value as a boolean. |
void |
writeByte(byte value)
Writes an element value as a byte. |
void |
writeCData(String cdata)
Writes a CDATA section. |
void |
writeDate(Date value)
Writes an element value as a date. |
void |
writeDouble(double value)
Writes an element value as a double. |
void |
writeEndTag()
Writes the ending tag of an element. |
void |
writeFloat(float value)
Writes an element value as a float. |
void |
writeInteger(int value)
Writes an element value as a long. |
void |
writeNewLine()
Writes a newline. |
void |
writeShort(short value)
Writes an element value as a short. |
void |
writeStartTag(String localName,
String uri,
IXMLAttributes attributes,
IXMLNamespaces namespaces,
boolean isEmpty)
Writes the starting tag of an element. |
void |
writeTab()
Writes a tab. |
void |
writeText(String text)
Writes the text value of an element. |
void |
writeTo(IStream outputStream)
Specifies output XML stream. |
void |
writeVariant(Object value)
Writes an element value as a variant. |
void |
writeXML(String xML)
Writes raw XML. |
void |
writeXMLDeclaration()
Writes the XML document declaration. |
| 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 XMLWriter()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public XMLWriter(Object obj)
throws IOException
XMLWriter theXMLWriter = (XMLWriter) obj;
obj to XMLWriter.
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 writeTo(IStream outputStream)
throws IOException,
AutomationException
writeTo in interface IXMLWriteroutputStream - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeStartTag(String localName,
String uri,
IXMLAttributes attributes,
IXMLNamespaces namespaces,
boolean isEmpty)
throws IOException,
AutomationException
writeStartTag in interface IXMLWriterlocalName - The localName (in)uri - The uri (in)attributes - A reference to a com.esri.arcgis.system.IXMLAttributes (in)namespaces - A reference to a com.esri.arcgis.system.IXMLNamespaces (in)isEmpty - The isEmpty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeText(String text)
throws IOException,
AutomationException
The WriteText method writes the text value of an element.
writeText in interface IXMLWritertext - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeCData(String cdata)
throws IOException,
AutomationException
writeCData in interface IXMLWritercdata - The cdata (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeEndTag()
throws IOException,
AutomationException
writeEndTag in interface IXMLWriterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeBoolean(boolean value)
throws IOException,
AutomationException
writeBoolean in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeByte(byte value)
throws IOException,
AutomationException
writeByte in interface IXMLWritervalue - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeShort(short value)
throws IOException,
AutomationException
writeShort in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeInteger(int value)
throws IOException,
AutomationException
writeInteger in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeFloat(float value)
throws IOException,
AutomationException
writeFloat in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeDouble(double value)
throws IOException,
AutomationException
writeDouble in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeDate(Date value)
throws IOException,
AutomationException
writeDate in interface IXMLWritervalue - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeBinary(byte[] value)
throws IOException,
AutomationException
The WriteBinary method writes an element value as a binary array.
writeBinary in interface IXMLWritervalue - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeVariant(Object value)
throws IOException,
AutomationException
The WriteVariant method writes an element value as a variant.
writeVariant in interface IXMLWritervalue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeXML(String xML)
throws IOException,
AutomationException
The RawXML method writes XML code to Stream object. The XML code should be well-formed and valid, otherwise the XMLReader will raise error if the Stream is going to be read afterwards.
writeXML in interface IXMLWriterxML - The xML (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeXMLDeclaration()
throws IOException,
AutomationException
writeXMLDeclaration in interface IXMLWriterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeNewLine()
throws IOException,
AutomationException
writeNewLine in interface IXMLWriterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeTab()
throws IOException,
AutomationException
writeTab in interface IXMLWriterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String lookupNamespace(String uri)
throws IOException,
AutomationException
lookupNamespace in interface IXMLWriteruri - The uri (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 | ||||||||