Top Description Fields Constructors Methods
com.fasterxml.aalto

public abstract Class AsyncXMLInputFactory

extends XMLInputFactory2
Class Inheritance
Known Direct Subclasses
com.fasterxml.aalto.stax.InputFactoryImpl
Imports
java.nio.ByteBuffer, javax.xml.stream.XMLStreamException, org.codehaus.stax2.XMLInputFactory2, .XMLStreamReader2

Extension of XMLInputFactory2 to provide factory methods for constructing non-blocking (asynchronous) parsers (of type AsyncXMLStreamReader.

Field Summary

Inherited from org.codehaus.stax2.XMLInputFactory2:
P_AUTO_CLOSE_INPUTP_DTD_OVERRIDEP_INTERN_NAMESP_INTERN_NS_URISP_LAZY_PARSINGP_PRESERVE_LOCATIONP_REPORT_CDATAP_REPORT_PROLOG_WHITESPACE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder>

Returns:

Non-blocking stream reader initialized with given input
createAsyncFor
(byte[] input)

Method for constructing a non-blocking XMLStreamReader2 instance with specified initial input data.

public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder>

Returns:

Non-blocking stream reader initialized with given input
createAsyncFor
(byte[] input, int offset, int length)

Method for constructing a non-blocking XMLStreamReader2 instance with specified initial input data.

public abstract AsyncXMLStreamReader<AsyncByteBufferFeeder>

Returns:

Non-blocking stream reader initialized with given input
createAsyncFor
(ByteBuffer input)

Method for constructing a non-blocking XMLStreamReader2 instance with specified initial input data.

public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder>

Returns:

Non-blocking stream reader without any input
createAsyncForByteArray
()

Method for constructing a non-blocking XMLStreamReader2 instance without any input data.

public abstract AsyncXMLStreamReader<AsyncByteBufferFeeder>

Returns:

Non-blocking stream reader without any input
createAsyncForByteBuffer
()

Method for constructing a non-blocking XMLStreamReader2 instance without any input data.

Inherited from org.codehaus.stax2.XMLInputFactory2:
configureForConvenienceconfigureForLowMemUsageconfigureForRoundTrippingconfigureForSpeedconfigureForXmlConformancecreateXMLEventReadercreateXMLEventReadercreateXMLStreamReadercreateXMLStreamReader

Constructor Detail

AsyncXMLInputFactoryback to summary
public AsyncXMLInputFactory()

Method Detail

createAsyncForback to summary
public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncFor(byte[] input) throws XMLStreamException

Method for constructing a non-blocking 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.

Returns:AsyncXMLStreamReader<AsyncByteArrayFeeder>

Non-blocking stream reader initialized with given input

createAsyncForback to summary
public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncFor(byte[] input, int offset, int length) throws XMLStreamException

Method for constructing a non-blocking 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.

Returns:AsyncXMLStreamReader<AsyncByteArrayFeeder>

Non-blocking stream reader initialized with given input

createAsyncForback to summary
public abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> createAsyncFor(ByteBuffer input) throws XMLStreamException

Method for constructing a non-blocking 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.

Returns:AsyncXMLStreamReader<AsyncByteBufferFeeder>

Non-blocking stream reader initialized with given input

createAsyncForByteArrayback to summary
public abstract AsyncXMLStreamReader<AsyncByteArrayFeeder> createAsyncForByteArray()

Method for constructing a non-blocking XMLStreamReader2 instance without any input data.

Returns:AsyncXMLStreamReader<AsyncByteArrayFeeder>

Non-blocking stream reader without any input

createAsyncForByteBufferback to summary
public abstract AsyncXMLStreamReader<AsyncByteBufferFeeder> createAsyncForByteBuffer()

Method for constructing a non-blocking XMLStreamReader2 instance without any input data.

Returns:AsyncXMLStreamReader<AsyncByteBufferFeeder>

Non-blocking stream reader without any input