public class ERXClamAvVirusScanner extends ERXVirusScanner
Name | Description |
---|---|
er.extensions.virus.ERXClamAvVirusScanner | set this property to
the path of the clamscan executable. Defaults to
/usr/bin/clamscan |
Constructor and Description |
---|
ERXClamAvVirusScanner() |
ERXClamAvVirusScanner(File file) |
ERXClamAvVirusScanner(InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
boolean |
isOk()
Access the result of the previous scan.
|
void |
scan(File file)
Virus scanner should scan the given file.
|
void |
scan(InputStream inputStream)
Virus scanner should scan the given input stream.
|
public ERXClamAvVirusScanner()
public ERXClamAvVirusScanner(File file)
public ERXClamAvVirusScanner(InputStream inputStream)
public void scan(File file)
ERXVirusScanner
ERXVirusScanner.isOk()
if file
passed the check.scan
in class ERXVirusScanner
file
- the file to scanpublic void scan(InputStream inputStream)
ERXVirusScanner
ERXVirusScanner.isOk()
if file passed the check.scan
in class ERXVirusScanner
inputStream
- the input stream to scanpublic boolean isOk()
ERXVirusScanner
isOk
in class ERXVirusScanner
true
if file/stream is virus freeCopyright © 2002 – 2020 Project Wonder.