Package org.eclipse.net4j.util.io
Class XOROutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.net4j.util.io.DelegatingOutputStream
org.eclipse.net4j.util.io.XOROutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.io.DelegatingOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.net4j.util.io.DelegatingOutputStream
close, flush, getDelegateMethods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
XOROutputStream
-
-
Method Details
-
getKey
public int[] getKey() -
write
Description copied from class:DelegatingOutputStreamWrites the specifiedbyteto this output stream.The
writemethod ofDelegatingOutputStreamcalls thewritemethod of its underlying output stream, that is, it performs out.write(b).Implements the abstract write method of OutputStream.
- Overrides:
writein classDelegatingOutputStream- Parameters:
b- thebyte.- Throws:
IOException- if an I/O error occurs.
-