# Class: com.pnfsoftware.jeb.util.io.StreamWrappers

Convenient stream wrappers to encrypt or compress data. Currently supported: LZ4 compression, RC4 encryption.

## Constructor: StreamWrappers


## Static Method: getCompressedStream
- parameter: `out`, type: `java.io.OutputStream`
- return type: `java.io.FilterOutputStream`

Description: LZ4 compression.
parameter: out: 
return: an output stream performing on\-write LZ4 compression

## Static Method: getDecryptedStream
- parameter: `in`, type: `java.io.InputStream`
- parameter: `key`, type: `byte[]`
- return type: `java.io.FilterInputStream`

Description: RC4 encryption.
parameter: in: 
parameter: key: 
return: an input stream performing on\-read RC4 decryption

## Static Method: getDecryptedStream
- parameter: `in`, type: `java.io.InputStream`
- parameter: `algo`, type: `java.lang.String`
- parameter: `key`, type: `byte[]`
- return type: `java.io.FilterInputStream`

Description: User\-selectable encryption.
parameter: in: 
parameter: algo: 
parameter: key: 
return: an input stream performing on\-read decryption

## Static Method: getEncryptedStream
- parameter: `out`, type: `java.io.OutputStream`
- parameter: `key`, type: `byte[]`
- return type: `java.io.FilterOutputStream`

Description: RC4 encryption.
parameter: out: 
parameter: key: 
return: an output stream performing on\-write RC4 encryption

## Static Method: getEncryptedStream
- parameter: `out`, type: `java.io.OutputStream`
- parameter: `algo`, type: `java.lang.String`
- parameter: `key`, type: `byte[]`
- return type: `java.io.FilterOutputStream`

Description: User\-selectable encryption.
parameter: out: 
parameter: algo: 
parameter: key: 
return: an output stream performing on\-write encryption

## Static Method: getUncompressedStream
- parameter: `in`, type: `java.io.InputStream`
- return type: `java.io.FilterInputStream`

Description: LZ4 compression.
parameter: in: 
return: an input stream performing on\-read LZ4 decompression

