public class XORInputStream extends DelegatingInputStream
in
Constructor and Description |
---|
XORInputStream(InputStream in,
int... key) |
Modifier and Type | Method and Description |
---|---|
int[] |
getKey() |
int |
read()
Reads the next byte of data from this input stream.
|
available, close, getDelegate, mark, markSupported, reset, skip
read, read
public XORInputStream(InputStream in, int... key)
public int[] getKey()
public int read() throws IOException
DelegatingInputStream
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.
This method simply performs in.read()
and returns the result.
read
in class DelegatingInputStream
-1
if the end of the stream is reached.IOException
- if an I/O error occurs.DelegatingInputStream.in
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.