|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An XmlSink responds to method calls by producing an XML document. The
Sink can assume that their methods will be called in the proper order with
data values that are valid for the respective XML node.
XmlSinks are used by the XmlOutput
class.
An XmlOutputException should be thrown on any error.
Method Summary | |
void |
close()
The user has finished providing XML. |
void |
comment(String content)
Add a comment |
void |
endElement(Namespace namespace,
String name,
List namespaceList,
boolean empty)
End an element. |
void |
instruction(String target,
String data)
Add a processing instruction |
void |
open()
This method will be called before any other methods, after the user has provided the first xml node |
void |
startElement(Namespace namespace,
String name,
AttributeList attributes,
List namespaceList,
boolean empty)
Start a new element |
void |
text(String text)
Add character data |
Method Detail |
public void open()
public void startElement(Namespace namespace, String name, AttributeList attributes, List namespaceList, boolean empty)
namespace
- The element namespacename
- The element nameattributes
- The element attributesnamespaceList
- The namespaces declared in this elementempty
- True if the element contains no other nodespublic void endElement(Namespace namespace, String name, List namespaceList, boolean empty)
namespace
- The element namespacename
- The element namenamespaceList
- The namespaces that were declared in this elementempty
- True if the element contains no other nodespublic void text(String text)
text
- The String to add as character datapublic void instruction(String target, String data)
target
- The PI targetdata
- The PI data - structure depends on the PIpublic void comment(String content)
content
- The text content of the commentpublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |