Top Description Methods
com.fasterxml.jackson.core.async

public Interface ByteArrayFeeder

extends NonBlockingInputFeeder
Known Direct Implementers
com.fasterxml.jackson.core.json.async.NonBlockingJsonParser
Imports
java.io.IOException

NonBlockingInputFeeder implementation used when feeding data as byte arrays.
Since
2.9

Method Summary

Modifier and TypeMethod and Description
public void
feedInput(byte[]
Byte array that contains 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
Offset after last byte contained in the input array
end
)

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

Inherited from com.fasterxml.jackson.core.async.NonBlockingInputFeeder:
endOfInputneedMoreInput

Method Detail

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

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

Parameters
data:byte[]

Byte array that contains 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

end:int

Offset after last byte contained in the input array

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