Class UpdateOutputStream

java.lang.Object
java.io.OutputStream
org.bouncycastle.crypto.UpdateOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
CipherOutputStream

public abstract class UpdateOutputStream extends OutputStream
An extension of output stream that provides update methods which allow for data to feed into the stream without the need to handle checked exceptions.
  • Constructor Details

    • UpdateOutputStream

      public UpdateOutputStream()
  • Method Details

    • update

      public final void update(byte b)
      Update the stream with the passed in byte.
      Parameters:
      b - the data to be written to the stream.
    • update

      public final void update(byte[] buffer)
      Update the stream with the passed in buffer.
      Parameters:
      buffer - the data to be written to the stream.
    • update

      public final void update(byte[] buffer, int off, int len)
      Update the stream with a section of the passed in buffer.
      Parameters:
      buffer - the buffer holding the data to be written.
      off - the offset into buffer at which the data starts.
      len - the length of the data to be written.
    • finished

      public final void finished()
      Finalise the stream signaling no more data to be sent.