Package com.avoka.fc.core.service
Interface IVirusScanService
-
- All Known Implementing Classes:
ClamAVVirusScanService
,FluentVirusScanService
,SSEVirusScanService
public interface IVirusScanService
Provides an interface for scanning file attachments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isFileVirusFree(String filename, byte[] fileData)
Scan the provided file and return true if virus free.
-
-
-
Method Detail
-
isFileVirusFree
boolean isFileVirusFree(String filename, byte[] fileData) throws VirusScanException
Scan the provided file and return true if virus free.- Parameters:
filename
- the name of the file to scanfileData
- the file data- Returns:
- true if the file is virus free
- Throws:
VirusScanException
- if there occurs a virus scan service configuration error
-
-