类 FastByteArrayOutputStream.UpdateMessageDigestInputStream

java.lang.Object
java.io.InputStream
cn.taketoday.util.FastByteArrayOutputStream.UpdateMessageDigestInputStream
所有已实现的接口:
Closeable, AutoCloseable
直接已知子类:
FastByteArrayOutputStream.FastByteArrayInputStream
封闭类:
FastByteArrayOutputStream

abstract static class FastByteArrayOutputStream.UpdateMessageDigestInputStream extends InputStream
  • 构造器详细资料

    • UpdateMessageDigestInputStream

      UpdateMessageDigestInputStream()
  • 方法详细资料

    • updateMessageDigest

      public void updateMessageDigest(MessageDigest messageDigest) throws IOException
      Update the message digest with the rest of the bytes in this stream.

      Using this method is more optimized since it avoids creating new byte arrays for each call.

      参数:
      messageDigest - the message digest to update
      抛出:
      IOException - when propagated from InputStream.read()
    • updateMessageDigest

      public void updateMessageDigest(MessageDigest messageDigest, int len) throws IOException
      Update the message digest with the next len bytes in this stream.

      Using this method is more optimized since it avoids creating new byte arrays for each call.

      参数:
      messageDigest - the message digest to update
      len - how many bytes to read from this stream and use to update the message digest
      抛出:
      IOException - when propagated from InputStream.read()