Registry / utility / jzlib
library1.1.3javamavenunverified

JZlib is a re-implementation of zlib in pure Java for compression and decompression.

<dependency> <groupId>com.jcraft</groupId> <artifactId>jzlib</artifactId> <version>1.1.3</version> </dependency>
INSTALL
IMPORT
SIG · JZLIB
J
jzlib
utilityjavav1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ZOutputStream
com.jcraft.jzlib.ZOutputStream

Compress a file using ZOutputStream.

import com.jcraft.jzlib.ZOutputStream; import java.io.*; public class CompressExample { public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("input.txt"); FileOutputStream fos = new FileOutputStream("output.zlib"); ZOutputStream zos = new ZOutputStream(fos, ZOutputStream.Z_DEFAULT_COMPRESSION); byte[] buffer = new byte[1024]; int len; while ((len = fis.read(buffer)) > 0) { zos.write(buffer, 0, len); } zos.close(); fis.close(); } }
Debug
Known issues
gotchaJZlib is not actively maintained; consider using java.util.zip or other libraries for better performance.
fix
Replace with java.util.zip.Deflater/Inflater or third-party libraries like Apache Commons Compress.
affects: *
Upgrade
Version history
1.1.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jzlib — mvn dependency:get jzlib · libregistry