thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dragan Okiljevic (JIRA)" <>
Subject [jira] [Commented] (THRIFT-123) implement TZlibTransport in Java
Date Tue, 03 May 2011 21:02:03 GMT


Dragan Okiljevic commented on THRIFT-123:

@Bryan Duxbury
Java SDK offers support for zlib compression in package classes Deflater &
Inflater and DeflaterOutputStream and InflaterInputStream.

Unfortunately, these classes offer only limited support to C++ zlib library features (for
example some flushing modes, such as ZSYNC_FLUSH are not supported). There are workarounds
for some of these issues (for example:
but it is generally very hard or maybe even impossible to emulate some of the features for
usage such as compressing data stream between client and server.

It seems that some additional features will be finally supported in Java 7, but there is also
another solution: using JZlib - pure Java, full featuread and free zlib implementation (

I am currently working on a Java TZlibTransport implementation. I spent considerable time
trying to implement it using only but eventualy switched to JZlib. I will publish
the patch containing TZlibTransport implementation soon.

> implement TZlibTransport in Java
> --------------------------------
>                 Key: THRIFT-123
>                 URL:
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Java - Library
>            Reporter: Pete Wyckoff
>            Priority: Minor
> TZlibTransport compatible with C++ version of TZlibTransport

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message