public static List<BaseMqttMessage> readAndConvertMessageLog(final File selectedFile) throws SpyException {
  final List<String> lines=FileUtils.readFileAsLines(selectedFile);
  logger.info("Message audit log - read {} messages from {}",lines.size(),selectedFile.getAbsoluteFile());
  return processMessageLog(parseMessageLog(lines,null,0,0),null,0,0);
}

public static List < BaseMqttMessage > readAndConvertMessageLog ( final File selectedFile ) throws SpyException { final List < String > lines = FileUtils . readFileAsLines ( selectedFile ) ; logger . info ( "Message audit log - read {} messages from {}" , lines . size ( ) , selectedFile . getAbsoluteFile ( ) ) ; return processMessageLog ( parseMessageLog ( lines , null , 0 , 0 ) , null , 0 , 0 ) ; }
this all - in - one method reads a message log from the given file and turns that into a list of mqtt message objects .
