Top Methods
com.fasterxml.aalto

public Interface AsyncByteArrayFeeder

extends AsyncInputFeeder
Known Direct Implementers
com.fasterxml.aalto.async.AsyncByteArrayScanner
Imports
javax.xml.stream.XMLStreamException

Method Summary

Modifier and TypeMethod and Description
public void
feedInput(byte[]
Byte array that containts data to feed: caller must ensure data remains stable until it is fully processed (which is true when needMoreInput returns true)
data
,
int
Offset within array where input data to process starts
offset
,
int
Length of input data within array to process.
len
)

Method that can be called to feed more data, if (and only if) needMoreInput returns true.

Inherited from com.fasterxml.aalto.AsyncInputFeeder:
endOfInputneedMoreInput

Method Detail

feedInputback to summary
public void feedInput(byte[] data, int offset, int len) throws XMLStreamException

Method that can be called to feed more data, if (and only if) needMoreInput returns true.

Parameters
data:byte[]

Byte array that containts data to feed: caller must ensure data remains stable until it is fully processed (which is true when needMoreInput returns true)

offset:int

Offset within array where input data to process starts

len:int

Length of input data within array to process.

Exceptions
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)