Package org.relique.io
Interface CryptoFilter
-
- All Known Implementing Classes:
XORCipher
public interface CryptoFilter
minimalistic approach to decrypting a file. a class implementing this interface is required to return one character at a time from the given InputStream. the InputStream is encrypted, the client receives it clear-text. the encryption used may require you to read more than one character from the InputStream, but this is your business, as is all initialization required by your cipher, the client will be offered one deciphered character at a time.- Author:
- mfrasca@zonnet.nl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
read(java.io.InputStream in)
int
read(java.io.InputStream in, byte[] b)
int
read(java.io.InputStream in, byte[] b, int off, int len)
void
reset()
void
write(java.io.OutputStream out, int ch)
-
-
-
Method Detail
-
read
int read(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
write
void write(java.io.OutputStream out, int ch) throws java.io.IOException
- Throws:
java.io.IOException
-
read
int read(java.io.InputStream in, byte[] b, int off, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
read
int read(java.io.InputStream in, byte[] b) throws java.io.IOException
- Throws:
java.io.IOException
-
reset
void reset()
-
-