Interface IInputStreamListener

All Known Implementing Classes:
InputStreamLineListener

public interface IInputStreamListener

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.

Author:
Pascal Essiembre
See Also:
  • 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