|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.eclipse.net4j.util.io.DelegatingInputStream
org.eclipse.net4j.util.io.XORInputStream
public class XORInputStream
Field Summary |
---|
Fields inherited from class org.eclipse.net4j.util.io.DelegatingInputStream |
---|
in |
Constructor Summary | |
---|---|
XORInputStream(java.io.InputStream in,
int... key)
|
Method Summary | |
---|---|
int[] |
getKey()
|
int |
read()
Reads the next byte of data from this input stream. |
Methods inherited from class org.eclipse.net4j.util.io.DelegatingInputStream |
---|
available, close, getDelegate, mark, markSupported, reset, skip |
Methods inherited from class java.io.InputStream |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XORInputStream(java.io.InputStream in, int... key)
Method Detail |
---|
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 - 2008 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |