Package com.ctc.wstx.stax
Class WstxEventFactory
java.lang.Object
javax.xml.stream.XMLEventFactory
org.codehaus.stax2.evt.XMLEventFactory2
org.codehaus.stax2.ri.Stax2EventFactoryImpl
com.ctc.wstx.stax.WstxEventFactory
public final class WstxEventFactory
extends org.codehaus.stax2.ri.Stax2EventFactoryImpl
Implementation of
XMLEventFactory
to be used with
Woodstox. Contains minimal additions on top of Stax2 RI.-
Field Summary
Fields inherited from class org.codehaus.stax2.ri.Stax2EventFactoryImpl
mLocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNote: constructing DTD events this way means that there will be no internal presentation of actual DTD; no parsing is implied by construction.protected QName
createQName
(String nsURI, String localName) protected QName
createQName
(String nsURI, String localName, String prefix) protected StartElement
createStartElement
(QName name, Iterator<?> attr, Iterator<?> ns, NamespaceContext ctxt) Must override this method to use a more efficient StartElement implementationMethods inherited from class org.codehaus.stax2.ri.Stax2EventFactoryImpl
createAttribute, createAttribute, createAttribute, createCData, createCharacters, createComment, createDTD, createDTD, createEndDocument, createEndElement, createEndElement, createEndElement, createEntityReference, createIgnorableSpace, createNamespace, createNamespace, createProcessingInstruction, createSpace, createStartDocument, createStartDocument, createStartDocument, createStartDocument, createStartElement, createStartElement, createStartElement, createStartElement, setLocation
Methods inherited from class javax.xml.stream.XMLEventFactory
newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
WstxEventFactory
public WstxEventFactory()
-
-
Method Details
-
createDTD
Note: constructing DTD events this way means that there will be no internal presentation of actual DTD; no parsing is implied by construction.- Overrides:
createDTD
in classorg.codehaus.stax2.ri.Stax2EventFactoryImpl
-
createQName
- Specified by:
createQName
in classorg.codehaus.stax2.ri.Stax2EventFactoryImpl
-
createQName
- Specified by:
createQName
in classorg.codehaus.stax2.ri.Stax2EventFactoryImpl
-
createStartElement
protected StartElement createStartElement(QName name, Iterator<?> attr, Iterator<?> ns, NamespaceContext ctxt) Must override this method to use a more efficient StartElement implementation- Overrides:
createStartElement
in classorg.codehaus.stax2.ri.Stax2EventFactoryImpl
-