public abstract class AsyncXMLInputFactory
extends org.codehaus.stax2.XMLInputFactory2
AsyncXMLStreamReader.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_WHITESPACEALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD| Constructor and Description |
|---|
AsyncXMLInputFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> |
createAsyncFor(byte[] input)
Method for constructing a non-blocking
XMLStreamReader2 instance
with specified initial input data. |
abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> |
createAsyncFor(byte[] input,
int offset,
int length)
Method for constructing a non-blocking
XMLStreamReader2 instance
with specified initial input data. |
abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> |
createAsyncFor(ByteBuffer input)
Method for constructing a non-blocking
XMLStreamReader2 instance
with specified initial input data. |
abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> |
createAsyncForByteArray()
Method for constructing a non-blocking
XMLStreamReader2 instance
without any input data. |
abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> |
createAsyncForByteBuffer()
Method for constructing a non-blocking
XMLStreamReader2 instance
without any input data. |
configureForConvenience, configureForLowMemUsage, configureForRoundTripping, configureForSpeed, configureForXmlConformance, createXMLEventReader, createXMLEventReader, createXMLStreamReader, createXMLStreamReadercreateFilteredReader, createFilteredReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported, newFactory, newFactory, newInstance, newInstance, setEventAllocator, setProperty, setXMLReporter, setXMLResolverpublic abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncForByteArray()
XMLStreamReader2 instance
without any input data.public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncFor(byte[] input) throws XMLStreamException
XMLStreamReader2 instance
with specified initial input data.
Input data will not be parsed at this point but merely fed to be parsed as
needed with Stax API calls.
Note that caller needs to ensure that given input buffer is available for parser to use until it has been fully consumed; parser is not required to make a copy of it, in order to minimize number of copies made. Caller can choose to just make a copy to pass. After input has been parsed buffer can be reused.
XMLStreamExceptionpublic abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncFor(byte[] input, int offset, int length) throws XMLStreamException
XMLStreamReader2 instance
with specified initial input data.
Input data will not be parsed at this point but merely fed to be parsed as
needed with Stax API calls.
Note that caller needs to ensure that given input buffer is available for parser to use until it has been fully consumed; parser is not required to make a copy of it, in order to minimize number of copies made. Caller can choose to just make a copy to pass. After input has been parsed buffer can be reused.
XMLStreamExceptionpublic abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> createAsyncForByteBuffer()
XMLStreamReader2 instance
without any input data.public abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> createAsyncFor(ByteBuffer input) throws XMLStreamException
XMLStreamReader2 instance
with specified initial input data.
Input data will not be parsed at this point but merely fed to be parsed as
needed with Stax API calls.
Note that caller needs to ensure that given input buffer is available for parser to use until it has been fully consumed; parser is not required to make a copy of it, in order to minimize number of copies made. Caller can choose to just make a copy to pass. After input has been parsed buffer can be reused.
XMLStreamExceptionCopyright © 2019 FasterXML. All rights reserved.