Package org.eclipse.net4j.util.io
Class XORInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.eclipse.net4j.util.io.DelegatingInputStream
- 
- org.eclipse.net4j.util.io.XORInputStream
 
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class XORInputStream extends DelegatingInputStream - Author:
- Eike Stepper
 
- 
- 
Field Summary- 
Fields inherited from class org.eclipse.net4j.util.io.DelegatingInputStreamin
 
- 
 - 
Constructor SummaryConstructors Constructor Description XORInputStream(java.io.InputStream in, int... key)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getKey()intread()Reads the next byte of data from this input stream.- 
Methods inherited from class org.eclipse.net4j.util.io.DelegatingInputStreamavailable, close, getDelegate, mark, markSupported, reset, skip
 
- 
 
- 
- 
- 
Method Detail- 
getKeypublic int[] getKey() 
 - 
readpublic int read() throws java.io.IOExceptionDescription copied from class:DelegatingInputStreamReads the next byte of data from this input stream. The value byte is returned as anintin the range0to255. If no byte is available because the end of the stream has been reached, the value-1is 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.- Overrides:
- readin class- DelegatingInputStream
- Returns:
- the next byte of data, or -1if the end of the stream is reached.
- Throws:
- java.io.IOException- if an I/O error occurs.
- See Also:
- DelegatingInputStream.in
 
 
- 
 
-