Add java.util.zip.Deflater(In|Out)putStream as Java7 API native alternative to JZlib

Description

XMPPConnection currently queries with help of reflection for jzlib. jZlib could be replaced with the native Java API java.util.zip.Deflater(In|Out)putStream (link, also available on Android) in order to create a zip compressed I/O stream. This was implemented in a similar fashion by AsmackService.

Environment

None

Activity

Show:

Florian Schmaus 
February 26, 2013 at 8:25 AM

There is no impact, both implement the DELFATE algorithm which is used by zlib as specified by XEP-0138 and RFC1950.

Walter Ebeling 
February 25, 2013 at 10:13 PM

What's the impact of moving to a different implementation for jZlib on Smack with respect to Openfire? Openfire is using Mina for compression/decompression (org.apache.mina.filter.support.Zlib.inflate(Zlib.java:140))

Florian Schmaus 
February 24, 2013 at 10:16 AM

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Priority

Created September 7, 2012 at 12:41 PM
Updated April 8, 2020 at 6:56 PM
Resolved February 26, 2013 at 9:27 AM