gnu.crypto.assembly

Class DeflateTransformer

class DeflateTransformer extends Transformer

A Transformer Adapter allowing inclusion of a DEFLATE compression algorithm in an Assembly chain. The FORWARD transformation is a compression (deflate) of input data, while the REVERSED one is a decompression (inflate) that restores the original data.

This Transformer uses a Deflater instance to carry on the compression, and an Inflater to do the decompression.

When using such a Transformer, in an Assembly, there must be at least one element behind this instance in the constructed chain; otherwise, a TransformerException is thrown at initialisation time.

Version: Revision: $

Constructor Summary
DeflateTransformer()
Method Summary
intdelegateBlockSize()
voidinitDelegate(Map attributes)
byte[]lastUpdateDelegate()
voidresetDelegate()
byte[]updateDelegate(byte[] in, int offset, int length)

Constructor Detail

DeflateTransformer

DeflateTransformer()

Method Detail

delegateBlockSize

int delegateBlockSize()

initDelegate

void initDelegate(Map attributes)

lastUpdateDelegate

byte[] lastUpdateDelegate()

resetDelegate

void resetDelegate()

updateDelegate

byte[] updateDelegate(byte[] in, int offset, int length)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.