public class

StreamWrappers

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.io.StreamWrappers

Class Overview

Wrappers for output/input IO streams. The compression and encryption algorithm used are not specified to clients.

TODO: make a non-static version, parameterize with various strategies (optimized for speed, space, etc.) while keeping the algorithms opaque.

Summary

Public Constructors
StreamWrappers()
Public Methods
static FilterOutputStream getCompressedStream(OutputStream out)
static FilterInputStream getDecryptedStream(InputStream in, byte[] key)
static FilterInputStream getDecryptedStream(InputStream in, String algo, byte[] key)
static FilterOutputStream getEncryptedStream(OutputStream out, byte[] key)
static FilterOutputStream getEncryptedStream(OutputStream out, String algo, byte[] key)
static FilterInputStream getUncompressedStream(InputStream in)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StreamWrappers ()

Public Methods

public static FilterOutputStream getCompressedStream (OutputStream out)

public static FilterInputStream getDecryptedStream (InputStream in, byte[] key)

public static FilterInputStream getDecryptedStream (InputStream in, String algo, byte[] key)

public static FilterOutputStream getEncryptedStream (OutputStream out, byte[] key)

public static FilterOutputStream getEncryptedStream (OutputStream out, String algo, byte[] key)

public static FilterInputStream getUncompressedStream (InputStream in)