Package com.pnfsoftware.jeb.util.io
Class XorInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.pnfsoftware.jeb.util.io.XorInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Filter input stream that XORs every byte read with a fixed one-byte key.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
XorInputStream
Create an XOR-decoding stream.- Parameters:
in- wrapped input streamkey- XOR key; only the low 8 bits are used
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-