Package host.anzo.simon
Interface RawChannelDataListener
public interface RawChannelDataListener
Interface to be implemented for receiving data ia RawChannel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called by SIMON when a RawChannel is closed.voidwrite(ByteBuffer data) Called by SIMON when data is received through a RawChannel.
-
Method Details
-
write
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
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.
-