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.
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))
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.