BlowfishJ
Class BlowfishInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--BlowfishJ.BlowfishInputStream

public class BlowfishInputStream
extends java.io.InputStream

An InputStream that reads from a Blowfish encrypted file.

Author:
Dale Anson (danson@germane-software.com), February, 2002

Constructor Summary
BlowfishInputStream(java.lang.String passphrase, java.io.InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
          Reads the next byte of data from this input stream.
 
Methods inherited from class java.io.InputStream
read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlowfishInputStream

public BlowfishInputStream(java.lang.String passphrase,
                           java.io.InputStream is)
Parameters:
passphrase - the passphrase that was used to encrypt the original data.
is - the input stream from which bytes will be read
Method Detail

read

public int read()
         throws java.io.IOException
Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
Overrides:
read in class java.io.InputStream
Returns:
the next byte of data or -1 if the end of the stream has been reached.

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream
See Also:
InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream
See Also:
InputStream

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
See Also:
InputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.InputStream
See Also:
InputStream