Interface RawChannelDataListener


public interface RawChannelDataListener
Interface to be implemented for receiving data ia RawChannel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by SIMON when a RawChannel is closed.
    void
    Called by SIMON when data is received through a RawChannel.
  • Method Details

    • write

      void write(ByteBuffer data) throws RawChannelException
      Called by SIMON when data is received through a RawChannel. Implementation is responsible for processing/storing/... received data.
      Parameters:
      data - ByteBuffer with received data
      Throws:
      RawChannelException - if an error occurs while writing data
    • close

      void close() throws RawChannelException
      Called by SIMON when a RawChannel is closed. Implementation can use this to close filestreams or whetever is needed to process/Store/... received data.
      Throws:
      RawChannelException - if an error occurs while closing.