Class XOROutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class XOROutputStream extends DelegatingOutputStream
Author:
Eike Stepper
  • Constructor Details

    • XOROutputStream

      public XOROutputStream(OutputStream out, int... key)
  • Method Details

    • getKey

      public int[] getKey()
    • write

      public void write(int b) throws IOException
      Description copied from class: DelegatingOutputStream
      Writes the specified 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.

      Overrides:
      write in class DelegatingOutputStream
      Parameters:
      b - the byte.
      Throws:
      IOException - if an I/O error occurs.