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