Class MedibusParsedWriter

java.lang.Object
com.framed.core.Service
com.framed.communicator.io.Writer<org.json.JSONObject>
com.framed.communicator.io.parsed.MedibusParsedWriter

public class MedibusParsedWriter extends Writer<org.json.JSONObject>
  • Constructor Details

    • MedibusParsedWriter

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

    • write

      public void write(org.json.JSONObject 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<org.json.JSONObject>
      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)