Class MeterlinkLogsProcessor

java.lang.Object
com.flir.thermalsdk.meterlink.MeterlinkLogsProcessor

public final class MeterlinkLogsProcessor extends Object
Helper for processing Meterlink logs.
  • Constructor Details

    • MeterlinkLogsProcessor

      public MeterlinkLogsProcessor()
  • Method Details

    • processLogData

      public boolean processLogData(DataReading reading, String outputDirectory, MeterlinkLogsProcessor.LogFormat format)
      Processes a DataReading content. Stores the processed content in a file in specified format. Allows to set a custom output directory. Allows to specify an output format.
      Default file name is unique in a directory and formatted as 'yyyy_MM_dd_HH_mm_ss' and optional index if file with the same name already exists. Use one of overloaded methods to customize it.
      Parameters:
      reading - a DataReading to process
      outputDirectory - a directory where log file will be stored (default is '<storage_root>/FLIR')
      format - a format in which the log will be stored (default is LogFormat.JSON)
      Returns:
      Returns true on success, otherwise returns false.
    • processLogData

      public boolean processLogData(DataReading reading, String outputDirectory, String outputFileName, MeterlinkLogsProcessor.LogFormat format)
      Processes a DataReading content. Stores the processed content in a file in specified format. Allows to set a custom output directory. Allows to set a custom output file name. Note that you need to make sure the name is unique, otherwise you can override existing file with new content. Allows to specify an output format.
      Parameters:
      reading - a DataReading to process
      outputDirectory - a directory where log file will be stored (default is "<storage_root>/FLIR" )
      outputFileName - name of the output file (by default name is unique in a directory and formatted as 'yyyy_MM_dd_HH_mm_ss' and optional index if file with the same name already exists)
      format - a format in which the log will be stored (default is LogFormat.JSON)
      Returns:
      Returns true on success, otherwise returns false.