You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Dragan Okiljevic (JIRA)" <ji...@apache.org> on 2011/05/03 23:02:03 UTC

[jira] [Commented] (THRIFT-123) implement TZlibTransport in Java

    [ https://issues.apache.org/jira/browse/THRIFT-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028423#comment-13028423 ] 

Dragan Okiljevic commented on THRIFT-123:
-----------------------------------------

@Bryan Duxbury
Java SDK offers support for zlib compression in java.util.zip 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: http://developer.java.sun.com/developer/bugParade/bugs/4255743.html) 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 (http://www.jcraft.com/jzlib/).

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

> implement TZlibTransport in Java
> --------------------------------
>
>                 Key: THRIFT-123
>                 URL: https://issues.apache.org/jira/browse/THRIFT-123
>             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: http://www.atlassian.com/software/jira