Interface ReadListener

All Superinterfaces:
EventListener

public interface ReadListener extends EventListener
The ReadListener API.
Author:
Manfred Riem ([email protected])
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when all data has been read.
    void
    Called when data is available.
    void
    onError​(Throwable throwable)
    Called when an error occurs.
  • Method Details

    • onAllDataRead

      void onAllDataRead() throws IOException
      Called when all data has been read.
      Throws:
      IOException - when an I/O error occurs.
    • onDataAvailable

      void onDataAvailable() throws IOException
      Called when data is available.
      Throws:
      IOException - when an I/O error occurs.
    • onError

      void onError(Throwable throwable)
      Called when an error occurs.
      Parameters:
      throwable - the throwable.