java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.io.StreamWrappers |
Convenient stream wrappers to encrypt or compress data. Currently supported: LZ4 compression, RC4 encryption.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
StreamWrappers() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static FilterOutputStream |
getCompressedStream(OutputStream out)
LZ4 compression.
| ||||||||||
static FilterInputStream |
getDecryptedStream(InputStream in, byte[] key)
RC4 encryption.
| ||||||||||
static FilterInputStream |
getDecryptedStream(InputStream in, String algo, byte[] key)
User-selectable encryption.
| ||||||||||
static FilterOutputStream |
getEncryptedStream(OutputStream out, byte[] key)
RC4 encryption.
| ||||||||||
static FilterOutputStream |
getEncryptedStream(OutputStream out, String algo, byte[] key)
User-selectable encryption.
| ||||||||||
static FilterInputStream |
getUncompressedStream(InputStream in)
LZ4 compression.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
LZ4 compression.
RC4 encryption.
User-selectable encryption.
RC4 encryption.
User-selectable encryption.
LZ4 compression.