|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.stream.XMLInputFactory org.codehaus.stax2.XMLInputFactory2 com.ctc.wstx.stax.WstxInputFactory com.ctc.wstx.sw.BambooWstxInputFactory
public class BambooWstxInputFactory
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_INTERN_NAMES, P_INTERN_NS_URIS, 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_NS_URIS, CFG_LAZY_PARSING, CFG_NAMESPACE_AWARE, CFG_NORMALIZE_ATTR_VALUES, 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_VALIDATE_AGAINST_DTD, CFG_VALIDATE_TEXT_CHARS, 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 | |
---|---|
BambooWstxInputFactory()
|
Method Summary | |
---|---|
org.codehaus.stax2.XMLStreamReader2 |
createSR(com.ctc.wstx.api.ReaderConfig cfg,
java.lang.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(java.lang.String systemId,
java.io.InputStream in,
java.lang.String enc,
boolean forER,
boolean autoCloseInput)
|
Methods inherited from class com.ctc.wstx.stax.WstxInputFactory |
---|
addCachedDTD, configureForConvenience, configureForLowMemUsage, configureForRoundTripping, configureForSpeed, configureForXmlConformance, createEventAllocator, createFilteredReader, createFilteredReader, createPrivateConfig, 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 |
---|
newFactory, newFactory, newInstance, newInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BambooWstxInputFactory()
Method Detail |
---|
protected org.codehaus.stax2.XMLStreamReader2 createSR(java.lang.String systemId, java.io.InputStream in, java.lang.String enc, boolean forER, boolean autoCloseInput) throws javax.xml.stream.XMLStreamException
createSR
in class com.ctc.wstx.stax.WstxInputFactory
javax.xml.stream.XMLStreamException
public org.codehaus.stax2.XMLStreamReader2 createSR(com.ctc.wstx.api.ReaderConfig cfg, java.lang.String systemId, com.ctc.wstx.io.InputBootstrapper bs, boolean forER, boolean autoCloseInput) throws javax.xml.stream.XMLStreamException
Note: defined as public method because it needs to be called by SAX implementation.
createSR
in class com.ctc.wstx.stax.WstxInputFactory
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 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).
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |