ClamAV4j

A Java library for ClamAV

License

License

GroupId

GroupId

io.sensesecure
ArtifactId

ArtifactId

clamav4j
Last Version

Last Version

0.6
Release Date

Release Date

Type

Type

jar
Description

Description

ClamAV4j
A Java library for ClamAV
Project URL

Project URL

https://github.com/yotang/clamav4j
Source Code Management

Source Code Management

http://github.com/yotang/clamav4j

Download clamav4j

How to add to project

<!-- https://jarcasting.com/artifacts/io.sensesecure/clamav4j/ -->
<dependency>
    <groupId>io.sensesecure</groupId>
    <artifactId>clamav4j</artifactId>
    <version>0.6</version>
</dependency>
// https://jarcasting.com/artifacts/io.sensesecure/clamav4j/
implementation 'io.sensesecure:clamav4j:0.6'
// https://jarcasting.com/artifacts/io.sensesecure/clamav4j/
implementation ("io.sensesecure:clamav4j:0.6")
'io.sensesecure:clamav4j:jar:0.6'
<dependency org="io.sensesecure" name="clamav4j" rev="0.6">
  <artifact name="clamav4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.sensesecure', module='clamav4j', version='0.6')
)
libraryDependencies += "io.sensesecure" % "clamav4j" % "0.6"
[io.sensesecure/clamav4j "0.6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

ClamAV4j

A Java library for ClamAV

This Java library is intended to be served as a bridge between a Java application or web service and the ClamAV antivirus engine. With ClamAV4j, virus detection could be performed for any content that comes from outside.

The library uses TCP socket (INET) to communicate with ClamAV daemon (clamd) through ClamAV's INSTREAM command. To use ClamAV4j library, either use the blocking connection Class:

class ClamAV

or use the asynchronous Class:

class ClamAVAsync

Installation

Add the ClamAV4j POM to a project with

<dependency>
  <groupId>io.sensesecure</groupId>
  <artifactId>clamav4j</artifactId>
  <version>0.6</version>
</dependency>

Performance

For ClamAVAsync class, it may offer better performance with multi-core processors. On the other hand, blocking ClamAV class allows the usage of FileChannel, which may bypass buffer copy under certain situations. It is best to test with the real scenario to make a selection between the two classes.

Contact

If you have trouble with the library or have questions, check out the GitHub repository at http://github.com/yongtang/clamav4j and I’ll help you sort it out.

Versions

Version
0.6
0.5
0.4