Package com.fasterxml.aalto
Interface AsyncXMLStreamReader<F extends AsyncInputFeeder>
-
- Type Parameters:
F- Type of input feeder used by reader; determines how input can be fed.
- All Superinterfaces:
org.codehaus.stax2.typed.TypedXMLStreamReader,org.codehaus.stax2.validation.Validatable,javax.xml.stream.XMLStreamConstants,javax.xml.stream.XMLStreamReader,org.codehaus.stax2.XMLStreamReader2
- All Known Implementing Classes:
AsyncStreamReaderImpl
public interface AsyncXMLStreamReader<F extends AsyncInputFeeder> extends org.codehaus.stax2.XMLStreamReader2Extension ofXMLStreamReader2used by non-blocking ("async") stream readers. The main difference is addition of a token (EVENT_INCOMPLETE) to indicate that there is not yet enough content to parse to tokenize next event; and method to accessAsyncInputFeederthat is used to provide input data in non-blocking manner.
-
-
Field Summary
Fields Modifier and Type Field Description static intEVENT_INCOMPLETEAs per javadocs ofXMLStreamConstants, event codes 0 through 256 (inclusive?) are reserved by the Stax specs, so we'll use the next available code.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReaderConfiggetConfig()FgetInputFeeder()Method used to accessAsyncInputFeederwhich is used to provide XML content to parse in non-blocking manner (seeAsyncInputFeederfor more details).-
Methods inherited from interface org.codehaus.stax2.typed.TypedXMLStreamReader
getAttributeAs, getAttributeAsArray, getAttributeAsBinary, getAttributeAsBinary, getAttributeAsBoolean, getAttributeAsDecimal, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLongArray, getAttributeAsQName, getAttributeIndex, getElementAs, getElementAsBinary, getElementAsBinary, getElementAsBoolean, getElementAsDecimal, getElementAsDouble, getElementAsFloat, getElementAsInt, getElementAsInteger, getElementAsLong, getElementAsQName, readElementAsArray, readElementAsBinary, readElementAsBinary, readElementAsDoubleArray, readElementAsFloatArray, readElementAsIntArray, readElementAsLongArray
-
Methods inherited from interface org.codehaus.stax2.validation.Validatable
setValidationProblemHandler, stopValidatingAgainst, stopValidatingAgainst, validateAgainst
-
Methods inherited from interface javax.xml.stream.XMLStreamReader
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet
-
-
-
-
Field Detail
-
EVENT_INCOMPLETE
static final int EVENT_INCOMPLETE
As per javadocs ofXMLStreamConstants, event codes 0 through 256 (inclusive?) are reserved by the Stax specs, so we'll use the next available code.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInputFeeder
F getInputFeeder()
Method used to accessAsyncInputFeederwhich is used to provide XML content to parse in non-blocking manner (seeAsyncInputFeederfor more details).- Returns:
- Input feeder to use for "pushing" content to parse.
-
getConfig
ReaderConfig getConfig()
-
-