Package org.primefaces.virusscan
Class VirusScannerService
java.lang.Object
org.primefaces.virusscan.VirusScannerService
This service may be used to load registered
VirusScanner
providers and perform virus scan.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
performVirusScan
(UploadedFile file) Perform virus scan and throw exception if at least one registeredVirusScanner
provider has detected a virus.
-
Constructor Details
-
VirusScannerService
-
-
Method Details
-
performVirusScan
Perform virus scan and throw exception if at least one registeredVirusScanner
provider has detected a virus.- Parameters:
file
- input stream to perform virus scan on- Throws:
VirusException
- if at least oneVirusScanner
provider has detected a virus
-