Class XMPPInputOutputStream
java.lang.Object
org.jivesoftware.smack.compression.XMPPInputOutputStream
- Direct Known Subclasses:
Java7ZlibInputOutputStream
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected static XMPPInputOutputStream.FlushMethod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InputStreamgetInputStream(InputStream inputStream) abstract OutputStreamgetOutputStream(OutputStream outputStream) abstract booleanstatic voidsetFlushMethod(XMPPInputOutputStream.FlushMethod flushMethod) Set the used flushed method when compressing data.
-
Field Details
-
flushMethod
-
compressionMethod
-
-
Constructor Details
-
XMPPInputOutputStream
-
-
Method Details
-
setFlushMethod
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:
-
getFlushMethod
-
getCompressionMethod
-
isSupported
public abstract boolean isSupported() -
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-