Class EncryptedInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--EncryptedInputStream
- public class EncryptedInputStream
- extends java.io.InputStream
This is a simple Stream Encryptor which uses a combination of
random and mathematical functions to generate a sequence of
bytes (usually 64) which are added to the actual data to
achieve pseudorandom encryption
Constructor Summary |
EncryptedInputStream()
This is a simple Stream Encryptor which uses a combination of
random and mathematical functions to generate a sequence of
bytes (usually 64) which are added to the actual data to
achieve pseudorandom encryption |
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
setInputStream(java.io.InputStream is)
This is a simple Stream Encryptor which uses a combination of
random and mathematical functions to generate a sequence of
bytes (usually 64) which are added to the actual data to
achieve pseudorandom encryption |
Methods inherited from class java.io.InputStream |
available,
mark,
markSupported,
reset,
skip |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EncryptedInputStream
public EncryptedInputStream()
- This is a simple Stream Encryptor which uses a combination of
random and mathematical functions to generate a sequence of
bytes (usually 64) which are added to the actual data to
achieve pseudorandom encryption
- Parameters:
p1
- the param1p2
- th param2
setInputStream
public void setInputStream(java.io.InputStream is)
- This is a simple Stream Encryptor which uses a combination of
random and mathematical functions to generate a sequence of
bytes (usually 64) which are added to the actual data to
achieve pseudorandom encryption
- Parameters:
p1
- the param1p2
- th param2- Returns:
- the value
read
public int read()
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.InputStream