Class AnalyseFileForVirusHelper

All Implemented Interfaces:
LogEnabled, Component

Helper that analyses a file for viruses
  • Field Details

  • Constructor Details

  • Method Details

    • isAntivirusEnabled

      public boolean isAntivirusEnabled()
      Checks if the antivirus is enabled
      Returns:
      true if the antivirus is enabled, false otherwise
    • analysefile

      public boolean analysefile(String absolutePath)
      Antivirus analysis. Based on clamscan results.
      Parameters:
      absolutePath - the absolute path of the file to analyse
      Returns:
      true if the file is correct, false if a malware was discovered in the file