com.ctc.wstx.stax
Class WstxEventFactory

java.lang.Object
  extended by javax.xml.stream.XMLEventFactory
      extended by org.codehaus.stax2.evt.XMLEventFactory2
          extended by org.codehaus.stax2.ri.Stax2EventFactoryImpl
              extended by 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
WstxEventFactory()
           
 
Method Summary
 DTD createDTD(String dtd)
          Note: 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 implementation
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WstxEventFactory

public WstxEventFactory()
Method Detail

createDTD

public DTD createDTD(String dtd)
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 class org.codehaus.stax2.ri.Stax2EventFactoryImpl

createQName

protected QName createQName(String nsURI,
                            String localName)
Specified by:
createQName in class org.codehaus.stax2.ri.Stax2EventFactoryImpl

createQName

protected QName createQName(String nsURI,
                            String localName,
                            String prefix)
Specified by:
createQName in class org.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 class org.codehaus.stax2.ri.Stax2EventFactoryImpl


Copyright © 2011 Codehaus. All Rights Reserved.