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 classXMPPInputOutputStream.FlushMethod
-
Field Summary
Fields Modifier and Type Field Description protected StringcompressionMethodprotected static XMPPInputOutputStream.FlushMethodflushMethod
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMPPInputOutputStream(String compressionMethod)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetCompressionMethod()static XMPPInputOutputStream.FlushMethodgetFlushMethod()abstract InputStreamgetInputStream(InputStream inputStream)abstract OutputStreamgetOutputStream(OutputStream outputStream)abstract booleanisSupported()static voidsetFlushMethod(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
-
-