Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.txt | 2016-08-09 | 1.0 kB | |
clam4j-bin-1.2.0.tar.gz | 2016-08-09 | 10.6 kB | |
clam4j-javadoc-1.2.0.tar.gz | 2016-08-09 | 30.7 kB | |
clam4j-src-1.2.0.tar.gz | 2016-08-09 | 4.6 kB | |
Totals: 4 Items | 46.9 kB | 0 |
Release notes for version 1.2.0 ============================== > Implement scanning of large files Implemented the ability to scan large files and streams with clamscam. Clamscan is auto detected (so the initalisation is still required). The scanning methods on ClamScanner have become static, there is a new set of methods which allow you to initialise a scan then write bytes to it as though it was an OutputStream. Once the scan is complete calling getScanResults will return the results of the scan on the data. As an example this can be used with. InputStream pData = null; //get this from somewhere ClamScanner tScanner = new ClamScanner(); tScanner.initScan(); byte[] tBuffer = new byte[4096]; int tBytesRead = pData.read(tBuffer); while (tBytesRead != -1) { tScanner.writeData(tBuffer, 0, tBytesRead); tBytesRead = pData.read(tBuffer); } ClamScanResults tResults = tScanner.getScanResults(); Large files can be scanned with the new scanFile(java.io.File pFile)