Class RawByteWriter

java.lang.Object
com.framed.core.Service
com.framed.communicator.io.Writer<byte[]>
com.framed.communicator.io.raw.RawByteWriter

public class RawByteWriter extends Writer<byte[]>
  • Constructor Details

    • RawByteWriter

      public RawByteWriter(String path, EventBus eventBus, org.json.JSONArray devices)
  • Method Details

    • write

      public void write(byte[] data, String deviceName) throws IOException
      Description copied from class: Writer
      Writes the given data to the configured path. Concrete implementations must define how the data is serialized and stored.
      Specified by:
      write in class Writer<byte[]>
      Parameters:
      data - the data to write
      deviceName - the name of the device associated with the data
      Throws:
      IOException - if an I/O error occurs during writing
    • handleEventBus

      public void handleEventBus(Object msg, String deviceName)