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.
  • Constructor Details

    • WstxEventFactory

      public WstxEventFactory()
  • Method Details

    • setLocation

      public void setLocation(Location location)
      Overrides:
      setLocation in class org.codehaus.stax2.ri.Stax2EventFactoryImpl
    • immutableLocation

      private static WstxInputLocation immutableLocation(Location location)
    • 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