|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.util.XMLWriter
public class XMLWriter
Utility for creating easily creating XML documents, one element at a time.
| Constructor Summary | |
|---|---|
XMLWriter(java.io.Writer w)
Creates a new XMLWriter, ready to write an XML document to the specified writer. |
|
XMLWriter(java.io.Writer w,
java.lang.String xmlns)
Creates a new XMLWriter, ready to write an XML document to the specified writer. |
|
| Method Summary | |
|---|---|
XMLWriter |
endElement()
Closes the last opened element at the current position in the in-progress XML document. |
XMLWriter |
startElement(java.lang.String element)
Starts a new element with the specified name at the current position in the in-progress XML document. |
XMLWriter |
value(java.util.Date date)
Adds the specified date as text to the current position of the in-progress XML document. |
XMLWriter |
value(java.lang.Object obj)
Adds the string representation of the specified object to the current position of the in progress XML document. |
XMLWriter |
value(java.lang.String s)
Adds the specified value as text to the current position of the in progress XML document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWriter(java.io.Writer w)
w - The writer this XMLWriter will write to.
public XMLWriter(java.io.Writer w,
java.lang.String xmlns)
w - The writer this XMLWriter will write to.xmlns - The XML namespace to include in the xmlns attribute of the
root element.| Method Detail |
|---|
public XMLWriter startElement(java.lang.String element)
element - The name of the new element.
public XMLWriter endElement()
public XMLWriter value(java.lang.String s)
s - The text to add to the XML document.
public XMLWriter value(java.util.Date date)
date - The date to add to the XML document.
public XMLWriter value(java.lang.Object obj)
obj - The object to translate to a string and add to the XML
document.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||