com.fasterxml.aalto

## Interface AsyncByteArrayFeeder

- All Superinterfaces:
    AsyncInputFeeder
  All Known Implementing Classes:
    AsyncByteArrayScanner

      public interface AsyncByteArrayFeeder
      extends AsyncInputFeeder

- - ### Method Summary

    Methods
    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) `AsyncInputFeeder.needMoreInput()` returns true.

    - ### Methods inherited from interface com.fasterxml.aalto.AsyncInputFeeder

      `endOfInput, needMoreInput`

- - ### Method Detail

    - #### feedInput

          void feedInput(byte[] data,
                       int offset,
                       int len)
                         throws XMLStreamException

      Method that can be called to feed more data, if (and only if) `AsyncInputFeeder.needMoreInput()` returns true.
      Parameters:
        `data` - 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 starts
        `len` - Length of input data within array to process.
      Throws:
        `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-2015 FasterXML. All Rights Reserved.