| java.lang.Object javanet.staxutils.XMLEventConsumerDelegate
XMLEventConsumerDelegate | public class XMLEventConsumerDelegate implements XMLEventConsumer(Code) | | Writes all events to a wrapped
XMLEventConsumer , and provides
convenience methods for creating events written to the internal consumer.
author: Christian Niles version: $Revision: 1.4 $ |
Method Summary | |
public void | add(XMLEvent event) | public void | addCData(String content) Creates and adds a CDATA
Characters event. | public void | addComment(String comment) Creates and adds a
Comment event. | public void | addDTD(String dtd) Creates and adds a
DTD event. | public void | addEndDocument() Creates and adds an
EndDocument event. | public void | addEndElement(String localName) Creates and adds an
EndElement event. | public void | addEndElement(String localName, Iterator namespaces) Creates and adds an
EndElement event. | public void | addEndElement(String ns, String localName) Creates and adds an
EndElement event. | public void | addEndElement(String ns, String localName, Iterator namespaces) Creates and adds an
EndElement event. | public void | addEndElement(QName name) Creates and adds an
EndElement event. | public void | addEndElement(QName name, Iterator namespaces) Creates and adds an
EndElement event. | public void | addIgnorableSpace(String content) Creates and adds an ignorable space
Characters event. | public void | addSpace(String content) Creates and adds a whitespace
Characters event. | public void | addStartDocument() Creates and adds a
StartDocument event. | public void | addStartDocument(String encoding) Creates and adds a
StartDocument event. | public void | addStartDocument(String encoding, String version) Creates and adds a
StartDocument event. | public void | addStartDocument(String encoding, String version, boolean standalone) Creates and adds a
StartDocument event. | public void | addStartElement(String localName, NamespaceContext context) Creates and adds a
StartElement event. | public void | addStartElement(String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) Creates and adds a
StartElement event. | public void | addStartElement(String ns, String localName, NamespaceContext context) Creates and adds a
StartElement event. | public void | addStartElement(String ns, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) Creates and adds a
StartElement event. | public void | addStartElement(QName name, NamespaceContext context) Creates and adds a
StartElement event. | public void | addStartElement(QName name, Iterator attributes, Iterator namespaces, NamespaceContext context) Creates and adds a
StartElement event. | public void | addText(String content) Creates and adds a
Characters event. | public void | addTextElement(String name, String text, NamespaceContext context) Adds a simple text element with no attributes or namespace declarations. | public void | addTextElement(QName name, String text, NamespaceContext context) Adds a simple text element with no attributes or namespace declarations. | public void | addTextElement(String name, boolean text, NamespaceContext context) Adds a boolean text element with no attributes or namespace declarations. | public void | addTextElement(QName name, boolean text, NamespaceContext context) Adds a boolean text element with no attributes or namespace declarations. | public void | addTextElement(String name, int text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(QName name, int text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(String name, long text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(QName name, long text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(String name, float text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(QName name, float text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(String name, double text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(QName name, double text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(String name, Number text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public void | addTextElement(QName name, Number text, NamespaceContext context) Adds a text element with no attributes or namespace declarations. | public XMLEventConsumer | getConsumer() Returns a reference to the underlying
XMLEventConsumer to which
events are added. | public XMLEventFactory | getEventFactory() Returns a reference to the
XMLEventFactory used to construct
events. | public void | setConsumer(XMLEventConsumer consumer) Sets the underlying
XMLEventConsumer to which events are added. | public void | setEventFactory(XMLEventFactory factory) Sets the
XMLEventFactory used to construct events. |
addTextElement | public void addTextElement(String name, boolean text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a boolean text element with no attributes or namespace declarations.
Parameters: name - The unqualified element name. Parameters: text - The boolean content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
addTextElement | public void addTextElement(QName name, boolean text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a boolean text element with no attributes or namespace declarations.
Parameters: name - The element name. Parameters: text - The boolean content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
addTextElement | public void addTextElement(String name, int text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a text element with no attributes or namespace declarations.
Parameters: name - The unqualified element name. Parameters: text - The element content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
addTextElement | public void addTextElement(String name, long text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a text element with no attributes or namespace declarations.
Parameters: name - The unqualified element name. Parameters: text - The element content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
addTextElement | public void addTextElement(String name, float text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a text element with no attributes or namespace declarations.
Parameters: name - The unqualified element name. Parameters: text - The element content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
addTextElement | public void addTextElement(String name, double text, NamespaceContext context) throws XMLStreamException(Code) | | Adds a text element with no attributes or namespace declarations.
Parameters: name - The unqualified element name. Parameters: text - The element content. Parameters: context - The element's NamespaceContext, or null . throws: XMLStreamException - If an error occurs adding an event. |
|
|