Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HashingOutputStream (0.29 sec)

  1. android/guava/src/com/google/common/hash/HashingOutputStream.java

    /**
     * An {@link OutputStream} that maintains a hash of the data written to it.
     *
     * @author Nick Piepmeier
     * @since 16.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public final class HashingOutputStream extends FilterOutputStream {
      private final Hasher hasher;
    
      /**
       * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        int b = 'q';
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(b);
    
        verify(hashFunction).newHasher();
        verify(hasher).putByte((byte) b);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArray() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        int b = 'q';
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(b);
    
        verify(hashFunction).newHasher();
        verify(hasher).putByte((byte) b);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArray() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
Back to top