Package com.avoka.fc.core.service.impl
Class ClamAVClient
java.lang.Object
com.avoka.fc.core.service.impl.ClamAVClient
Provides an ClamAV Scan Engine Virus Scan Service.
-
Constructor Summary
ConstructorDescriptionClamAVClient
(String hostname, int port, int timeout) Create a ClamAV Scan Engine client with the given hostname and port. -
Method Summary
-
Constructor Details
-
ClamAVClient
Create a ClamAV Scan Engine client with the given hostname and port.- Parameters:
hostname
- the server hostnameport
- the server porttimeout
- the timeout
-
-
Method Details
-
scanFile
Scan the given file specified by the file name and the file byte data, returning true if the file is virus free or false, if it contains a virus.- Parameters:
fileName
- the name of the filefileData
- the file data bytes- Returns:
- true if file data virus free, or false otherwise
- Throws:
VirusScanException
- if a clamAV configuration error occurs
-