DataConsumer.java 415 B

1234567891011121314151617
  1. package com.serotonin.cdc.messaging;
  2. import java.io.IOException;
  3. public interface DataConsumer {
  4. /**
  5. * Notifies the consumer that new data is available
  6. *
  7. * @param b
  8. * array of bytes representing the incoming information
  9. * @param len
  10. * length of the data
  11. */
  12. public void data(byte[] b, int len);
  13. public void handleIOException(IOException e);
  14. }