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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    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 Details

    • WstxEventFactory

      public WstxEventFactory()
  • Method Details

    • 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