|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXMLWriter
Provides access to members that control the sequential writing of XML.
The IXMLWriter interface provides nineteen methods to use for writing out specific data elements.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void writeTo(IStream outputStream) throws IOException, AutomationException
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.void writeStartTag(String localName, String uri, IXMLAttributes attributes, IXMLNamespaces namespaces, boolean isEmpty) throws IOException, AutomationException
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.void writeText(String text) throws IOException, AutomationException
The WriteText method writes the text value of an element.
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeCData(String cdata) throws IOException, AutomationException
cdata
- The cdata (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeEndTag() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeBoolean(boolean value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeByte(byte value) throws IOException, AutomationException
value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeShort(short value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeInteger(int value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeFloat(float value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeDouble(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeDate(Date value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeBinary(byte[] value) throws IOException, AutomationException
The WriteBinary method writes an element value as a binary array.
value
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeVariant(Object value) throws IOException, AutomationException
The WriteVariant method writes an element value as a variant.
value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
xML
- The xML (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeXMLDeclaration() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeNewLine() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void writeTab() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String lookupNamespace(String uri) throws IOException, AutomationException
uri
- The uri (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 |