Class UpdateOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Direct Known Subclasses:
    CipherOutputStream, DigestOutputStream, MacOutputStream, SignerOutputStream, XofOutputStream

    public abstract class UpdateOutputStream
    extends java.io.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void update​(byte b)
      Update the stream with the passed in byte.
      void update​(byte[] buffer)
      Update the stream with the passed in buffer.
      void update​(byte[] buffer, int off, int len)
      Update the stream with a section of the passed in buffer.
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, write, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpdateOutputStream

        public UpdateOutputStream()
    • Method Detail

      • 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.