thrift-dev mailing list archives

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

    [ 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

Mime
View raw message