|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface ConfigurationService.XMLStreamWriter
Defines an interface through which services can output XML data. This interface is designed to mimic Java 6's XMLStreamWriter but is implemented for compatibility with Java 5.
| Method Summary | |
|---|---|
void |
writeAttribute(java.lang.String name,
java.lang.String value)
Writes the specified key-value pair as an attribute to the most recent XML element. |
void |
writeCData(java.lang.String data)
Writes arbitrary data, as a CDATA section, to the XML stream |
void |
writeCharacters(char[] buffer,
int start,
int len)
Writes arbitrary data to the XML stream |
void |
writeCharacters(java.lang.String data)
Writes arbitrary data to the XML stream |
void |
writeEmptyElement(java.lang.String name)
Writes an empty element (e.g., <Foo /> to the XML stream |
void |
writeEndElement()
Closes the most recently opened element (e.g., with </Foo>) |
void |
writeStartElement(java.lang.String name)
Writes the start element (e.g., <Foo>) to the XML stream |
| Method Detail |
|---|
void writeStartElement(java.lang.String name)
throws java.io.IOException
name - the name of the element
java.io.IOException - if an
I/O error occurs while writing the element
void writeEndElement()
throws java.io.IOException
java.io.IOException - if an
I/O error occurs while writing the close tag
void writeEmptyElement(java.lang.String name)
throws java.io.IOException
name - the name of the element
java.io.IOException - if an
I/O error occurs while writing the tag
void writeAttribute(java.lang.String name,
java.lang.String value)
throws java.io.IOException
name - the name of the attributevalue - the value of the attribute
java.io.IOException - if an
exception occurs while writing
the attribute
void writeCData(java.lang.String data)
throws java.io.IOException
data - the data to write
java.io.IOException - if an I/O exception occurs while writing
the data
void writeCharacters(java.lang.String data)
throws java.io.IOException
data - data the data to write
java.io.IOException - is an I/O exception occurs while writing
the data
void writeCharacters(char[] buffer,
int start,
int len)
throws java.io.IOException
buffer - the buffer from which to read the datastart - the 0-based start index in the buffer from which
to read the datalen - the length of the data to read from the buffer
java.io.IOException - if an I/O exception occurs while writing
the data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||