Class StaxParserFactory

java.lang.Object
javax.xml.stream.XMLInputFactory
org.codehaus.stax2.XMLInputFactory2
com.ctc.wstx.stax.WstxInputFactory
org.frankframework.xml.StaxParserFactory
All Implemented Interfaces:
com.ctc.wstx.cfg.InputConfigFlags, com.ctc.wstx.sr.ReaderCreator, org.codehaus.stax2.XMLStreamProperties

public class StaxParserFactory extends com.ctc.wstx.stax.WstxInputFactory
Descendant of Woodstox XMLInputFactory, that accepts XML 1.1 compliant content in XML 1.0 documents too. This is introduced to solve a problem in ExchangeMailListener, where illegal characters are seen inside Exchange-documents.
Author:
Gerrit van Brakel
  • Field Summary

    Fields inherited from class com.ctc.wstx.stax.WstxInputFactory

    mAllocator, mConfig, mDTDCache

    Fields inherited from class org.codehaus.stax2.XMLInputFactory2

    P_AUTO_CLOSE_INPUT, P_DTD_OVERRIDE, P_INTERN_NAMES, P_INTERN_NS_URIS, P_LAZY_PARSING, P_PRESERVE_LOCATION, P_REPORT_CDATA, P_REPORT_PROLOG_WHITESPACE

    Fields inherited from interface com.ctc.wstx.cfg.InputConfigFlags

    CFG_ALLOW_XML11_ESCAPED_CHARS_IN_XML10, CFG_AUTO_CLOSE_INPUT, CFG_CACHE_DTDS, CFG_CACHE_DTDS_BY_PUBLIC_ID, CFG_COALESCE_TEXT, CFG_INTERN_NAMES, CFG_INTERN_NS_URIS, CFG_JAXP_FEATURE_SECURE_PROCESSING, CFG_LAZY_PARSING, CFG_NAMESPACE_AWARE, CFG_NORMALIZE_LFS, CFG_PRESERVE_LOCATION, CFG_REPLACE_ENTITY_REFS, CFG_REPORT_CDATA, CFG_REPORT_PROLOG_WS, CFG_SUPPORT_DTD, CFG_SUPPORT_DTDPP, CFG_SUPPORT_EXTERNAL_ENTITIES, CFG_TREAT_CHAR_REFS_AS_ENTS, CFG_VALIDATE_AGAINST_DTD, CFG_XMLID_TYPING, CFG_XMLID_UNIQ_CHECKS

    Fields inherited from interface org.codehaus.stax2.XMLStreamProperties

    XSP_IMPLEMENTATION_NAME, XSP_IMPLEMENTATION_VERSION, XSP_NAMESPACE_AWARE, XSP_PROBLEM_REPORTER, XSP_SUPPORT_XMLID, XSP_SUPPORTS_XML11, XSP_V_XMLID_FULL, XSP_V_XMLID_NONE, XSP_V_XMLID_TYPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.ctc.wstx.api.ReaderConfig
    Enable XML 1.1, to avoid errors like: Illegal character entity: expansion character (code 0x3 at [row,col {unknown-source}]: [1,53]

    Methods inherited from class com.ctc.wstx.stax.WstxInputFactory

    addCachedDTD, addSymbol, configureForConvenience, configureForLowMemUsage, configureForRoundTripping, configureForSpeed, configureForXmlConformance, createEventAllocator, createFilteredReader, createFilteredReader, createSR, createSR, createSR, createSR, createSR, createSR, createSR, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, findCachedDTD, getConfig, getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported, setEventAllocator, setProperty, setXMLReporter, setXMLResolver, updateSymbolTable

    Methods inherited from class javax.xml.stream.XMLInputFactory

    newDefaultFactory, newFactory, newFactory, newInstance, newInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaxParserFactory

      public StaxParserFactory()
  • Method Details

    • createPrivateConfig

      public com.ctc.wstx.api.ReaderConfig createPrivateConfig()
      Enable XML 1.1, to avoid errors like: Illegal character entity: expansion character (code 0x3 at [row,col {unknown-source}]: [1,53]
      Overrides:
      createPrivateConfig in class com.ctc.wstx.stax.WstxInputFactory