sam.cipher
Class Cipher.ByteArrayFilter

java.lang.Object
  |
  +--sam.io.ByteArrayFilter
        |
        +--sam.cipher.Cipher.ByteArrayFilter
Enclosing class:
Cipher

public class Cipher.ByteArrayFilter
extends ByteArrayFilter

byte[] array filter implementation based on this cipher. This is useful for tranparent input/output-stream filtering


Nested Class Summary
 
Nested classes inherited from class sam.io.ByteArrayFilter
ByteArrayFilter.InputStream, ByteArrayFilter.OutputStream
 
Field Summary
 
Fields inherited from class sam.io.ByteArrayFilter
length
 
Constructor Summary
Cipher.ByteArrayFilter()
          Builds a new byte[] array filter
Cipher.ByteArrayFilter(int length)
          Builds a new byte[] array filter of specified filter block length
 
Method Summary
protected  void filter(byte[] data, int offset)
          Filters the data byte[] array from position offset up to offset + length - 1.
 
Methods inherited from class sam.io.ByteArrayFilter
fillRandomly, filter, filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cipher.ByteArrayFilter

public Cipher.ByteArrayFilter()
Builds a new byte[] array filter


Cipher.ByteArrayFilter

public Cipher.ByteArrayFilter(int length)
Builds a new byte[] array filter of specified filter block length

Method Detail

filter

protected final void filter(byte[] data,
                            int offset)
Description copied from class: ByteArrayFilter
Filters the data byte[] array from position offset up to offset + length - 1.

Specified by:
filter in class ByteArrayFilter