Accept a stream and return a compressed/decompressed stream