https://github.com/diluv/clam-chowder
Modern ClamAV client for Java.
https://github.com/diluv/clam-chowder
clamav clamav-client java malware-detection scanning
Last synced: 4 months ago
JSON representation
Modern ClamAV client for Java.
- Host: GitHub
- URL: https://github.com/diluv/clam-chowder
- Owner: Diluv
- License: lgpl-2.1
- Created: 2020-02-08T07:03:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T00:58:47.000Z (over 2 years ago)
- Last Synced: 2025-05-21T11:16:01.064Z (5 months ago)
- Topics: clamav, clamav-client, java, malware-detection, scanning
- Language: Java
- Homepage:
- Size: 202 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clam Chowder
Clam Chowder is a modern [ClamAV](https://www.clamav.net/) client written in Java. With this client you will be able to quickly implement ClamAV features such as malware scanning into your application.
## Maven Info
```gradle
dependencies {
implementation group: 'com.diluv.clamchowder', name: 'ClamChowder', version: ''
}
```(or the short version):
```gradle
dependencies {
implementation 'com.diluv.clamchowder:ClamChowder:'
}
```## Getting Started
Implementing the ClamAV client is very simple. Simply create a new ClamClient using the connection information for your ClamAV server.
```java
final ClamClient client = new ClamClient("127.0.0.1", 3310);
```After creating the client you can use it to send commands to the ClamAV server. Each command is sent using a separate connection and can be threaded. Built in methods are provided for several of the commands such as ping and scan.
Scanning a file is as simple as passing a File object to the client. For advanced use cases you can also scan an InputStream instead.
```java
final ScanResult result = client.scan(new File("sketchy.zip"));
System.out.println("File Status is " + result.getStatus().name() + " Malware: " + result.getFound());
```