Class Java7ZlibInputOutputStream
- java.lang.Object
-
- org.jivesoftware.smack.compression.XMPPInputOutputStream
-
- org.jivesoftware.smack.compression.Java7ZlibInputOutputStream
-
public class Java7ZlibInputOutputStream extends XMPPInputOutputStream
This class provides XMPP "zlib" compression with the help of the Deflater class of the Java API. Note that the method needed for compression with synchronous flush support is available since Java7, so it will only work with Java7 or higher (hence it's name). On Android, the requireddeflate()
method is available on API 19 or higher.See also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.compression.XMPPInputOutputStream
XMPPInputOutputStream.FlushMethod
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.compression.XMPPInputOutputStream
compressionMethod, flushMethod
-
-
Constructor Summary
Constructors Constructor Description Java7ZlibInputOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream(InputStream inputStream)
OutputStream
getOutputStream(OutputStream outputStream)
boolean
isSupported()
-
Methods inherited from class org.jivesoftware.smack.compression.XMPPInputOutputStream
getCompressionMethod, getFlushMethod, setFlushMethod
-
-
-
-
Constructor Detail
-
Java7ZlibInputOutputStream
public Java7ZlibInputOutputStream()
-
-
Method Detail
-
isSupported
public boolean isSupported()
- Specified by:
isSupported
in classXMPPInputOutputStream
-
getInputStream
public InputStream getInputStream(InputStream inputStream)
- Specified by:
getInputStream
in classXMPPInputOutputStream
-
getOutputStream
public OutputStream getOutputStream(OutputStream outputStream)
- Specified by:
getOutputStream
in classXMPPInputOutputStream
-
-