ClamAV Daemon Client for Java
Add the following dependency to the <dependencies>
section of your pom.xml
file when using Maven.
<dependency>
<groupId>de.cwkr</groupId>
<artifactId>clamd4j</artifactId>
<version>0.1.0</version>
</dependency>
import de.cwkr.clamd4j.ClamdClient;
import de.cwkr.clamd4j.SuspiciousFile;
import java.util.Collections;
void main() {
var clamdClient = new ClamdClient();
var suspiciousFile = SuspiciousFile.of(new byte[]{});
var report = clamdClient.scan(Collections.singletonList(suspiciousFile));
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.