public class XORInputStream extends DelegatingInputStream
in
Constructor and Description |
---|
XORInputStream(java.io.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
public int[] getKey()
public int read() throws java.io.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.java.io.IOException
- if an I/O error occurs.DelegatingInputStream.in
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html