|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLOutput
Interface to generate an XML document in some form. E.g., writing it to a stream, generating SAX events, etc.
| Method Summary | |
|---|---|
void |
beginDocument()
Begin the XML document. |
void |
closeTag(java.lang.String tagName)
Close tag with given name. |
void |
finish()
Finish writing XML output, closing any underlying resources (such as output streams). |
void |
openCloseTag(java.lang.String tagName)
Open and close tag with given name. |
void |
openCloseTag(java.lang.String tagName,
XMLAttributeList attributeList)
Open and close tag with given name and given attributes. |
void |
openTag(java.lang.String tagName)
Open a tag with given name. |
void |
openTag(java.lang.String tagName,
XMLAttributeList attributeList)
Open a tag with given name and given attributes. |
void |
writeCDATA(java.lang.String cdata)
Write a CDATA section to the XML document. |
void |
writeText(java.lang.String text)
Write text to the XML document. |
| Method Detail |
|---|
void beginDocument()
throws java.io.IOException
java.io.IOException
void openTag(java.lang.String tagName)
throws java.io.IOException
tagName - the tag name
java.io.IOException
void openTag(java.lang.String tagName,
XMLAttributeList attributeList)
throws java.io.IOException
tagName - the tag nameattributeList - the attributes
java.io.IOException
void openCloseTag(java.lang.String tagName)
throws java.io.IOException
tagName - the tag name
java.io.IOException
void openCloseTag(java.lang.String tagName,
XMLAttributeList attributeList)
throws java.io.IOException
tagName - the tag nameattributeList - the attributes
java.io.IOException
void closeTag(java.lang.String tagName)
throws java.io.IOException
tagName - the tag name
java.io.IOException
void writeText(java.lang.String text)
throws java.io.IOException
text - the text to write
java.io.IOException
void writeCDATA(java.lang.String cdata)
throws java.io.IOException
cdata - the character data to write
java.io.IOException
void finish()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||