Package com.flir.thermalsdk.meterlink
Class MeterlinkLogsProcessor
java.lang.Object
com.flir.thermalsdk.meterlink.MeterlinkLogsProcessor
Helper for processing Meterlink logs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines a format in which the log file will be stored. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
processLogData
(DataReading reading, String outputDirectory, MeterlinkLogsProcessor.LogFormat format) Processes aDataReading
content.boolean
processLogData
(DataReading reading, String outputDirectory, String outputFileName, MeterlinkLogsProcessor.LogFormat format) Processes aDataReading
content.
-
Constructor Details
-
MeterlinkLogsProcessor
public MeterlinkLogsProcessor()
-
-
Method Details
-
processLogData
public boolean processLogData(DataReading reading, String outputDirectory, MeterlinkLogsProcessor.LogFormat format) Processes aDataReading
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
- aDataReading
to processoutputDirectory
- 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 aDataReading
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
- aDataReading
to processoutputDirectory
- 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.
-