public interface NonBlockingByteArrayFeeder extends NonBlockingInputFeeder
| Modifier and Type | Method and Description |
|---|---|
void |
feedInput(byte[] data,
int offset,
int len)
Method that can be called to feed more data, if (and only if)
NonBlockingInputFeeder.needMoreInput() returns true. |
endOfInput, needMoreInputvoid feedInput(byte[] data,
int offset,
int len)
throws IOException
NonBlockingInputFeeder.needMoreInput() returns true.data - Byte array that contains data to feed: caller must ensure data remains
stable until it is fully processed (which is true when NonBlockingInputFeeder.needMoreInput()
returns true)offset - Offset within array where input data to process startslen - Length of input data within array to process.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)Copyright © 2017 FasterXML. All rights reserved.