Class ClamdService
- java.lang.Object
-
- org.apache.sling.commons.clam.internal.ClamdService
-
- All Implemented Interfaces:
ClamService
public class ClamdService extends java.lang.Object implements ClamService
-
-
Constructor Summary
Constructors Constructor Description ClamdService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ScanResultscan(@NotNull java.io.InputStream inputStream)
-
-
-
Method Detail
-
scan
@NotNull public @NotNull ScanResult scan(@NotNull @NotNull java.io.InputStream inputStream) throws java.io.IOException
- Specified by:
scanin interfaceClamService- Parameters:
inputStream- The data to scan for malware- Returns:
- The scan result from Clam
- Throws:
java.io.IOException- if scanning data or parsing reply fails
-
-