Smack

org.jivesoftware.smack.compression
Class JzlibInputOutputStream

java.lang.Object
  extended by org.jivesoftware.smack.compression.XMPPInputOutputStream
      extended by org.jivesoftware.smack.compression.JzlibInputOutputStream

public class JzlibInputOutputStream
extends XMPPInputOutputStream

This class provides XMPP "zlib" compression with the help of JZLib. Note that jzlib-1.0.7 must be used (i.e. in the classpath), newer versions won't work!

Author:
Florian Schmaus
See Also:
JZLib

Field Summary
 
Fields inherited from class org.jivesoftware.smack.compression.XMPPInputOutputStream
compressionMethod
 
Constructor Summary
JzlibInputOutputStream()
           
 
Method Summary
 InputStream getInputStream(InputStream inputStream)
           
 OutputStream getOutputStream(OutputStream outputStream)
           
 boolean isSupported()
           
 
Methods inherited from class org.jivesoftware.smack.compression.XMPPInputOutputStream
getCompressionMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JzlibInputOutputStream

public JzlibInputOutputStream()
Method Detail

isSupported

public boolean isSupported()
Specified by:
isSupported in class XMPPInputOutputStream

getInputStream

public InputStream getInputStream(InputStream inputStream)
                           throws SecurityException,
                                  NoSuchMethodException,
                                  IllegalArgumentException,
                                  IllegalAccessException,
                                  InvocationTargetException,
                                  InstantiationException
Specified by:
getInputStream in class XMPPInputOutputStream
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
InstantiationException

getOutputStream

public OutputStream getOutputStream(OutputStream outputStream)
                             throws SecurityException,
                                    NoSuchMethodException,
                                    IllegalArgumentException,
                                    InstantiationException,
                                    IllegalAccessException,
                                    InvocationTargetException
Specified by:
getOutputStream in class XMPPInputOutputStream
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException

Smack

Copyright © 2003-2007 Jive Software.