Class HttpBodyDigestOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.lockss.laaws.rs.multipart.HttpBodyDigestOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class HttpBodyDigestOutputStream extends org.apache.commons.io.output.ProxyOutputStream
  • Field Details

  • Constructor Details

    • HttpBodyDigestOutputStream

      public HttpBodyDigestOutputStream(OutputStream proxy)
  • Method Details

    • switchToDigest

      public void switchToDigest()
    • write

      public void write(int b) throws IOException
      Overrides:
      write in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b) throws IOException
      Overrides:
      write in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      Overrides:
      write in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException
    • getDigest

      public MessageDigest getDigest()