public class XOROutputStream extends DelegatingOutputStream
out
Constructor and Description |
---|
XOROutputStream(OutputStream out,
int... key) |
Modifier and Type | Method and Description |
---|---|
int[] |
getKey() |
void |
write(int b)
Writes the specified
byte to this output stream. |
close, flush, getDelegate
write, write
public XOROutputStream(OutputStream out, int... key)
public int[] getKey()
public void write(int b) throws IOException
DelegatingOutputStream
byte
to this output stream.
The write
method of DelegatingOutputStream
calls the write
method of its
underlying output stream, that is, it performs out.write(b).
Implements the abstract write method of OutputStream.
write
in class DelegatingOutputStream
b
- the byte
.IOException
- if an I/O error occurs.Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.