Package com.ctc.wstx.sw
Class BambooWstxInputFactory
- java.lang.Object
-
- javax.xml.stream.XMLInputFactory
-
- org.codehaus.stax2.XMLInputFactory2
-
- com.ctc.wstx.stax.WstxInputFactory
-
- com.ctc.wstx.sw.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 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 class javax.xml.stream.XMLInputFactory
ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD
-
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
-
-
Constructor Summary
Constructors Constructor Description BambooWstxInputFactory()
-
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
-
Methods inherited from class javax.xml.stream.XMLInputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
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 classcom.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 classcom.ctc.wstx.stax.WstxInputFactory
- Parameters:
systemId
- System id used for this reader (if any)bs
- Bootstrapper to use for creating actual underlying physical readerforER
- 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 whenclose()
is called. Will be true for input sources that are automatically managed by stream reader (input streams created forURL
andFile
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
-
-