public class ClamavClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static Platform |
DEFAULT_SERVER_PLATFORM |
static int |
DEFAULT_SERVER_PORT |
| Constructor and Description |
|---|
ClamavClient(InetSocketAddress server) |
ClamavClient(InetSocketAddress server,
Platform serverPlatform) |
ClamavClient(String serverHostname) |
ClamavClient(String serverHostname,
int serverPort) |
ClamavClient(String serverHostname,
int serverPort,
Platform serverPlatform) |
ClamavClient(String serverHostname,
Platform serverPlatform) |
| Modifier and Type | Method and Description |
|---|---|
ScanResult |
parallelScan(Path path)
Scans a file/directory on the server filesystem and will continue the scan to the end
even if a virus has been found.
|
void |
ping() |
void |
reloadVirusDatabases() |
ScanResult |
scan(InputStream inputStream)
Scans an
InputStream and sends a response as soon as a virus has been found. |
ScanResult |
scan(Path path)
Scans a file/directory on the server filesystem and sends a response as soon as a virus has been found.
|
ScanResult |
scan(Path path,
boolean continueScan)
Scans a file/directory on the server filesystem and may continue the scan to the end
even if a virus has been found, depending on the
continueScan argument. |
void |
shutdownServer() |
String |
stats() |
String |
version() |
public static final int DEFAULT_SERVER_PORT
public static final Platform DEFAULT_SERVER_PLATFORM
public ClamavClient(String serverHostname)
public ClamavClient(String serverHostname, int serverPort)
public ClamavClient(InetSocketAddress server)
public ClamavClient(InetSocketAddress server, Platform serverPlatform)
public void ping()
public String version()
public String stats()
public void reloadVirusDatabases()
public void shutdownServer()
public ScanResult scan(InputStream inputStream)
InputStream and sends a response as soon as a virus has been found.inputStream - public ScanResult scan(Path path)
path - public ScanResult scan(Path path, boolean continueScan)
continueScan argument.path - continueScan - public ScanResult parallelScan(Path path)
path - Copyright © 2016. All rights reserved.