Package com.norconex.commons.lang.io

# Interface InputStreamListener

All Known Subinterfaces:
  `IInputStreamListener`

All Known Implementing Classes:
  `InputStreamLineListener`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InputStreamListener

Listener that is being notified every time a chunk of bytes is processed from a given input stream.

Since 1.13.0, use `InputStreamLineListener` to listen to each line being streamed from text files.

Should not be considered thread safe.

See Also:
  - `InputStreamConsumer`
  - `InputStreamLineListener`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `streamed(String type, byte[] bytes, int length)`
  Invoked when a chunk of bytes is streamed.

- ## Method Details

  - ### streamed

    void streamed(String type, byte[] bytes, int length)
    Invoked when a chunk of bytes is streamed.
    Parameters:
      `type` - type of what is being streamed, as defined by the class using this listener
      `bytes` - chunk of bytes streamed
      `length` - length of valid bytes to read or -1 if no more bytes to read