|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 FormConstructor 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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void writeTo(IStream outputStream) throws IOException, AutomationException
writeTo
in interface IXMLWriter
outputStream
- 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 IXMLWriter
localName
- 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 IXMLWriter
text
- 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 IXMLWriter
cdata
- 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 IXMLWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeBoolean(boolean value) throws IOException, AutomationException
writeBoolean
in interface IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
value
- 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 IXMLWriter
xML
- 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 IXMLWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeNewLine() throws IOException, AutomationException
writeNewLine
in interface IXMLWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeTab() throws IOException, AutomationException
writeTab
in interface IXMLWriter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String lookupNamespace(String uri) throws IOException, AutomationException
lookupNamespace
in interface IXMLWriter
uri
- 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 ISupportErrorInfo
riid
- 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 |