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 VirusScanner
properties
- Init Properties. This will be used for individual settings.InitializeException
- Thrown when initialization failspublic void scan(byte[] bytes) throws VirusScannerException, VirusFoundException
scan
in interface VirusScanner
bytes
- Byte contentVirusScannerException
- This Exception encapsulate any exceptionVirusFoundException
- VirusScannerException
public void scan(File file) throws VirusScannerException, VirusFoundException
scan
in interface VirusScanner
file
- Scanning fileVirusScannerException
- VirusScannerException
VirusFoundException
- VirusFoundException
public InputStream scan(InputStream stream) throws VirusScannerException, VirusFoundException
scan
in interface VirusScanner
stream
- 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.