| javanet.staxutils.StAXContentHandler javanet.staxutils.StAXEventContentHandler
StAXEventContentHandler | public class StAXEventContentHandler extends StAXContentHandler (Code) | | SAX ContentHandler that writes events to a StAX
XMLEventConsumer .
author: Christian Niles version: $Revision: 1.5 $ |
Method Summary | |
public void | characters(char[] ch, int start, int length) | public void | comment(char[] ch, int start, int length) | protected Namespace | createNamespace(String prefix, String uri) | protected void | createStartEvents(Attributes attributes, Collection[] events) Creates the
Namespace and
Attribute events associated
with a
StartElement .
Parameters: attributes - The SAX attributes object. Parameters: events - An array used to return the two collections ofNamespaceand Attributeevents. | public void | endCDATA() | public void | endDocument() | public void | endElement(String uri, String localName, String qName) | public XMLEventConsumer | getEventConsumer() Returns a reference to the
XMLEventConsumer to which events will
be written. | public XMLEventFactory | getEventFactory() Returns a reference to the
XMLEventFactory used to construct
events. | public void | ignorableWhitespace(char[] ch, int start, int length) | public void | processingInstruction(String target, String data) | public void | setEventConsumer(XMLEventConsumer consumer) Sets the
XMLEventConsumer to which events are written. | public void | setEventFactory(XMLEventFactory factory) Sets the
XMLEventFactory used to create events. | public void | startDocument() | public void | startElement(String uri, String localName, String qName, Attributes attributes) |
StAXEventContentHandler | public StAXEventContentHandler(XMLEventConsumer consumer)(Code) | | Constructs an instance that writes events to the provided
XMLEventConsumer. Events will be constructed from a default
XMLEventFactory instance.
Parameters: consumer - The XMLEventConsumerto which events will bewritten. |
StAXEventContentHandler | public StAXEventContentHandler(XMLEventConsumer consumer, XMLEventFactory factory)(Code) | | Constructs an instance that writes events constructed with the provided
XMLEventFactory to the provided XMLEventConsumer
Parameters: consumer - The XMLEventConsumer to which events will bewritten. Parameters: factory - The XMLEventFactory used to construct events. Ifnull , a default instance will be constructed. |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | |
createStartEvents | protected void createStartEvents(Attributes attributes, Collection[] events)(Code) | | Creates the
Namespace and
Attribute events associated
with a
StartElement .
Parameters: attributes - The SAX attributes object. Parameters: events - An array used to return the two collections ofNamespaceand Attributeevents. Thenamespaces will be placed at events[0] and theattributes as events[1] . |
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | |
Methods inherited from javanet.staxutils.StAXContentHandler | public void characters(char[] ch, int start, int length) throws SAXException(Code)(Java Doc) public void comment(char[] ch, int start, int length) throws SAXException(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public Location getCurrentLocation()(Code)(Java Doc) final public static void parseQName(String qName, String[] results)(Code)(Java Doc) protected void reportException(String type, SAXException e) throws SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setXMLReporter(XMLReporter reporter)(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|