public interface CompressionMethod
| Modifier and Type | Field and Description |
|---|---|
static CompressionMethod |
DEFLATE
The "deflate" compression method.
|
static CompressionMethod |
GZIP
The "gzip" compression method.
|
static CompressionMethod |
ZLIB
The "zlib" compression method.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
compress(OutputStream outputStream)
Gets the compressed output stream.
|
InputStream |
decompress(InputStream inputStream)
Decompresses an input stream.
|
String |
getName()
Gets the compression method name, e.g.
|
static final CompressionMethod ZLIB
static final CompressionMethod GZIP
static final CompressionMethod DEFLATE
String getName()
InputStream decompress(InputStream inputStream) throws IOException
inputStream - The compressed input stream.IOException - If the decompression failed.OutputStream compress(OutputStream outputStream) throws IOException
outputStream - The uncompressed output stream.IOException - If the compression failed.Copyright © 2014–2018 XMPP.rocks. All rights reserved.