Package com.avoka.fc.core.service.impl
Class SSEClient
- java.lang.Object
-
- com.avoka.fc.core.service.impl.SSEClient
-
public class SSEClient extends Object
Provides an Symantec Scan Engine Virus Scan Service.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
scanFile(String fileName, byte[] fileData)
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.
-
-
-
Constructor Detail
-
SSEClient
public SSEClient(String hostname, int port)
Create a Synmatic Scan Engine (SSE) client with the given hostname and port.- Parameters:
hostname
- the server hostnameport
- the server port
-
-
Method Detail
-
scanFile
public boolean scanFile(String fileName, byte[] fileData) throws VirusScanException
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 an error occurs during scanning
-
-