Class XMPPInputOutputStream
- java.lang.Object
-
- org.jivesoftware.smack.compression.XMPPInputOutputStream
-
- Direct Known Subclasses:
Java7ZlibInputOutputStream
public abstract class XMPPInputOutputStream extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMPPInputOutputStream.FlushMethod
-
Field Summary
Fields Modifier and Type Field Description protected String
compressionMethod
protected static XMPPInputOutputStream.FlushMethod
flushMethod
-
Constructor Summary
Constructors Modifier Constructor Description protected
XMPPInputOutputStream(String compressionMethod)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getCompressionMethod()
static XMPPInputOutputStream.FlushMethod
getFlushMethod()
abstract InputStream
getInputStream(InputStream inputStream)
abstract OutputStream
getOutputStream(OutputStream outputStream)
abstract boolean
isSupported()
static void
setFlushMethod(XMPPInputOutputStream.FlushMethod flushMethod)
Set the used flushed method when compressing data.
-
-
-
Field Detail
-
flushMethod
protected static XMPPInputOutputStream.FlushMethod flushMethod
-
compressionMethod
protected final String compressionMethod
-
-
Constructor Detail
-
XMPPInputOutputStream
protected XMPPInputOutputStream(String compressionMethod)
-
-
Method Detail
-
setFlushMethod
public static void setFlushMethod(XMPPInputOutputStream.FlushMethod flushMethod)
Set the used flushed method when compressing data. The default is full flush which may not achieve the best compression ratio, but provides better security against certain attacks. Only use sync flush if you fully understand the implications.- Parameters:
flushMethod
- TODO javadoc me please- See Also:
- Attacks against XMPP when using compression
-
getFlushMethod
public static XMPPInputOutputStream.FlushMethod getFlushMethod()
-
getCompressionMethod
public String getCompressionMethod()
-
isSupported
public abstract boolean isSupported()
-
getInputStream
public abstract InputStream getInputStream(InputStream inputStream) throws IOException
- Throws:
IOException
-
getOutputStream
public abstract OutputStream getOutputStream(OutputStream outputStream) throws IOException
- Throws:
IOException
-
-