public class NoneVirusScanner extends Object implements VirusScanner
| Constructor and Description |
|---|
NoneVirusScanner() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Properties properties)
Initialize the Scanner
|
void |
scan(byte[] bytes)
Scan a byte array for viruses
|
void |
scan(File file)
Scan file for virus
|
InputStream |
scan(InputStream stream)
Scan an input stream for virus.
|
public void init(Properties properties) throws InitializeException
init in interface VirusScannerproperties - Init Properties. This will be used for individual settings.InitializeException - Thrown when initialization failspublic void scan(byte[] bytes)
throws VirusScannerException,
VirusFoundException
scan in interface VirusScannerbytes - Byte contentVirusScannerException - This Exception encapsulate any exceptionVirusFoundException - VirusScannerExceptionpublic void scan(File file) throws VirusScannerException, VirusFoundException
scan in interface VirusScannerfile - Scanning fileVirusScannerException - VirusScannerExceptionVirusFoundException - VirusFoundExceptionpublic InputStream scan(InputStream stream) throws VirusScannerException, VirusFoundException
scan in interface VirusScannerstream - Data streamtrue if a virus was detected else false, when
no virus was detectedVirusScannerException - This Exception encapsulate any exceptionVirusFoundException - This only thrown when a virus was foundCopyright © 2019 Communote team. All rights reserved.