iaik.cms
Interface InputStreamCompressEngine


public interface InputStreamCompressEngine

Generic compression engine for compressing/decompressing data that is supplied by an input stream. Used by class CompressedDataStream for content compression/decompression.

An application that implements its own InputStreamCompressEngine has to override the following SecurityProvider method to plug-in its own implementation:

See Also:
SecurityProvider

Field Summary
static int COMPRESS
          Constant for a compress engine to be initialized for compression.
static int DECOMPRESS
          Constant for a compress engine to be initialized for decompression.
 
Method Summary
 java.io.InputStream getInputStream()
          Gets an input stream that compresses/decompresses all data that is read from the underlying input stream.
 

Field Detail

COMPRESS

static final int COMPRESS
Constant for a compress engine to be initialized for compression.

See Also:
Constant Field Values

DECOMPRESS

static final int DECOMPRESS
Constant for a compress engine to be initialized for decompression.

See Also:
Constant Field Values
Method Detail

getInputStream

java.io.InputStream getInputStream()
Gets an input stream that compresses/decompresses all data that is read from the underlying input stream. The stream shall not be read by this method. This method shall only wrap a stream around the given stream. Any data that later is read from the wrapped (and thus underlying) stream is compressed/decompressed.

Returns:
the compressesing/decompressing stream

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC