org.jivesoftware.smack.compression
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 is available since Java7, so it will only work with Java7 or higher (hence it's name).
- Author:
- Florian Schmaus
- See Also:
- The
required deflate() method
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java7ZlibInputOutputStream
public Java7ZlibInputOutputStream()
isSupported
public boolean isSupported()
- Specified by:
isSupported
in class XMPPInputOutputStream
getInputStream
public InputStream getInputStream(InputStream inputStream)
- Specified by:
getInputStream
in class XMPPInputOutputStream
getOutputStream
public OutputStream getOutputStream(OutputStream outputStream)
- Specified by:
getOutputStream
in class XMPPInputOutputStream
Copyright © 2003-2007 Jive Software.