public class AsyncStreamReaderImpl extends StreamReaderImpl implements AsyncXMLStreamReader, AsyncInputFeeder
AsyncXMLStreamReader.| Modifier and Type | Field and Description |
|---|---|
protected AsyncUtfScanner |
_asyncScanner |
_attrCount, _base64Decoder, _cfgCoalesceText, _cfgReportTextAsChars, _currName, _currToken, _decoderFactory, _dtdRootName, _parseState, _scannerEVENT_INCOMPLETEATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
AsyncStreamReaderImpl(AsyncUtfScanner scanner) |
| Modifier and Type | Method and Description |
|---|---|
void |
endOfInput()
Method that should be called after last chunk of data to parse has been fed
(with
AsyncInputFeeder.feedInput(byte[], int, int)); can be called regardless of what AsyncInputFeeder.needMoreInput()
returns. |
void |
feedInput(byte[] data,
int offset,
int len)
Method that can be called to feed more data, if (and only if)
AsyncInputFeeder.needMoreInput() returns true. |
AsyncInputFeeder |
getInputFeeder()
Method used to access
AsyncInputFeeder which is used to
provide XML content to parse in non-blocking manner (see
AsyncInputFeeder for more details). |
boolean |
needMoreInput()
Method called to check whether it is ok to feed more data: parser returns true
if it has no more content to parse (and it is ok to feed more); otherwise false
(and no data should yet be fed).
|
_base64Decoder, _closeScanner, _constructUnexpectedInTyped, _decoderFactory, close, closeCompletely, construct, findAttributeIndex, getAttributeAs, getAttributeAsArray, getAttributeAsBinary, getAttributeAsBinary, getAttributeAsBoolean, getAttributeAsDecimal, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLongArray, getAttributeAsQName, getAttributeCount, getAttributeIndex, getAttributeInfo, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getCurrentLocation, getDepth, getDTDInfo, getDTDInternalSubset, getDTDPublicId, getDTDRootName, getDTDSystemId, getElementAs, getElementAsBinary, getElementAsBinary, getElementAsBoolean, getElementAsDecimal, getElementAsDouble, getElementAsFloat, getElementAsInt, getElementAsInteger, getElementAsLong, getElementAsQName, getElementText, getEncoding, getEndingByteOffset, getEndingCharOffset, getEndLocation, getEventType, getFeature, getIdAttributeIndex, getLastCharLocation, getLocalName, getLocation, getLocationInfo, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getNonTransientNamespaceContext, getNotationAttributeIndex, getPIData, getPITarget, getPrefix, getPrefixedName, getProcessedDTD, getProcessedDTDSchema, getProperty, getScanner, getStartingByteOffset, getStartingCharOffset, getStartLocation, getText, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, handlePrologEoi, handleTreeEoi, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEmptyElement, isEndElement, isPropertySupported, isStandalone, isStartElement, isWhiteSpace, next, nextTag, readElementAsArray, readElementAsBinary, readElementAsBinary, readElementAsDoubleArray, readElementAsFloatArray, readElementAsIntArray, readElementAsLongArray, reportInvalidAttrIndex, require, setFeature, setProperty, setValidationProblemHandler, skipElement, standaloneSet, stopValidatingAgainst, stopValidatingAgainst, throwFromIOE, throwUnexpectedEOI, throwWfe, toString, validateAgainst, verifyQNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseCompletely, getAttributeInfo, getDepth, getDTDInfo, getFeature, getLocationInfo, getNonTransientNamespaceContext, getPrefixedName, getText, isEmptyElement, isPropertySupported, setFeature, setProperty, skipElementgetAttributeAs, 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, readElementAsLongArrayclose, 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, standaloneSetprotected final AsyncUtfScanner _asyncScanner
public AsyncStreamReaderImpl(AsyncUtfScanner scanner)
public AsyncInputFeeder getInputFeeder()
AsyncXMLStreamReaderAsyncInputFeeder which is used to
provide XML content to parse in non-blocking manner (see
AsyncInputFeeder for more details).getInputFeeder in interface AsyncXMLStreamReaderpublic boolean needMoreInput()
AsyncInputFeederneedMoreInput in interface AsyncInputFeederpublic void endOfInput()
AsyncInputFeederAsyncInputFeeder.feedInput(byte[], int, int)); can be called regardless of what AsyncInputFeeder.needMoreInput()
returns. After calling this method, no more data can be fed; and parser assumes
no more data will be available.endOfInput in interface AsyncInputFeederpublic void feedInput(byte[] data,
int offset,
int len)
throws XMLStreamException
AsyncInputFeederAsyncInputFeeder.needMoreInput() returns true.feedInput in interface AsyncInputFeederdata - Byte array that containts data to feed: caller must ensure data remains
stable until it is fully processed (which is true when AsyncInputFeeder.needMoreInput()
returns true)offset - Offset within array where input data to process startslen - Length of input data within array to process.XMLStreamException - if the state is such that this method should not be called
(has not yet consumed existing input data, or has been marked as closed)Copyright © 2012-2013 FasterXML. All Rights Reserved.