DBAbstract API Documentation

ro.raducora.utils.encryption.stream
Class DecryptedInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--ro.raducora.utils.encryption.stream.DecryptedInputStream

public class DecryptedInputStream
extends java.io.FilterInputStream

Author:
Radu Coravu

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DecryptedInputStream(java.io.InputStream input, StreamEncryptionKey key)
          Constructor.
 
Method Summary
 int read()
          Read one byte.
 int read(byte[] b)
          Read.
 int read(byte[] b, int off, int len)
          Read the byte[].
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecryptedInputStream

public DecryptedInputStream(java.io.InputStream input,
                            StreamEncryptionKey key)
Constructor.

Parameters:
input - the InputStream to decrypt
key - the key to use for decryption
Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Read the byte[].

Overrides:
read in class java.io.FilterInputStream
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Read.

Overrides:
read in class java.io.FilterInputStream
java.io.IOException

read

public int read()
         throws java.io.IOException
Read one byte.

Overrides:
read in class java.io.FilterInputStream
java.io.IOException

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.