Class ClamDaemonScanner

    • Constructor Detail

      • ClamDaemonScanner

        public ClamDaemonScanner()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Description copied from interface: VirusScanner
        Indicate whether this VirusScanner is enabled or not.
        Specified by:
        isEnabled in interface VirusScanner
        Returns:
        true if enabled, false otherwise
      • scan

        public void scan​(UploadedFile file)
        Scan file using send to ClamAV service running at host and port over TCP.
        Specified by:
        scan in interface VirusScanner
        Parameters:
        file - file to perform virus scan on
        Throws:
        VirusException - if a virus has been detected by the scanner