Class BambooWstxInputFactory

  • All Implemented Interfaces:
    com.ctc.wstx.cfg.InputConfigFlags, com.ctc.wstx.sr.ReaderCreator, org.codehaus.stax2.XMLStreamProperties

    public class BambooWstxInputFactory
    extends com.ctc.wstx.stax.WstxInputFactory
    Workaround for http://jira.codehaus.org/browse/WSTX-273
    • 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_AUTO_CLOSE_INPUT, CFG_CACHE_DTDS, CFG_CACHE_DTDS_BY_PUBLIC_ID, CFG_COALESCE_TEXT, CFG_INTERN_NAMES, CFG_INTERN_NS_URIS, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.codehaus.stax2.XMLStreamReader2 createSR​(com.ctc.wstx.api.ReaderConfig cfg, String systemId, com.ctc.wstx.io.InputBootstrapper bs, boolean forER, boolean autoCloseInput)
      Method that is eventually called to create a (full) stream read instance.
      protected org.codehaus.stax2.XMLStreamReader2 createSR​(com.ctc.wstx.io.SystemId systemId, InputStream in, String enc, boolean forER, boolean autoCloseInput)  
      • Methods inherited from class com.ctc.wstx.stax.WstxInputFactory

        addCachedDTD, addSymbol, configureForConvenience, configureForLowMemUsage, configureForRoundTripping, configureForSpeed, configureForXmlConformance, createEventAllocator, createFilteredReader, createFilteredReader, createPrivateConfig, 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
    • Constructor Detail

      • BambooWstxInputFactory

        public BambooWstxInputFactory()
    • Method Detail

      • createSR

        protected org.codehaus.stax2.XMLStreamReader2 createSR​(com.ctc.wstx.io.SystemId systemId,
                                                               InputStream in,
                                                               String enc,
                                                               boolean forER,
                                                               boolean autoCloseInput)
                                                        throws XMLStreamException
        Overrides:
        createSR in class com.ctc.wstx.stax.WstxInputFactory
        Throws:
        XMLStreamException
      • createSR

        public org.codehaus.stax2.XMLStreamReader2 createSR​(com.ctc.wstx.api.ReaderConfig cfg,
                                                            String systemId,
                                                            com.ctc.wstx.io.InputBootstrapper bs,
                                                            boolean forER,
                                                            boolean autoCloseInput)
                                                     throws XMLStreamException
        Method that is eventually called to create a (full) stream read instance.

        Note: defined as public method because it needs to be called by SAX implementation.

        Overrides:
        createSR in class com.ctc.wstx.stax.WstxInputFactory
        Parameters:
        systemId - System id used for this reader (if any)
        bs - Bootstrapper to use for creating actual underlying physical reader
        forER - Flag to indicate whether it will be used via Event API (will affect some configuration settings), true if it will be, false if not (or not known)
        autoCloseInput - Whether the underlying input source should be actually closed when encountering EOF, or when close() is called. Will be true for input sources that are automatically managed by stream reader (input streams created for URL and File arguments, or when configuration settings indicate auto-closing is to be enabled (the default value is false as per Stax 1.0 specs).
        Throws:
        XMLStreamException