@Test public void testCountIsAccurate() throws IOException { final long byteArrayLength = 100; final MultiHashingInputStream andUseHashingStream = createAndUseHashingStream(new byte[(int) byteArrayLength]); assertThat(andUseHashingStream.count(), is(equalTo(byteArrayLength))); }
public long count() { return count; }
MultiHashingInputStream extends FilterInputStream { public long count() { return count; } }
MultiHashingInputStream extends FilterInputStream { public long count() { return count; } MultiHashingInputStream(final Iterable<HashAlgorithm> algorithms, final InputStream inputStream); }
MultiHashingInputStream extends FilterInputStream { public long count() { return count; } MultiHashingInputStream(final Iterable<HashAlgorithm> algorithms, final InputStream inputStream); @Override int read(); @Override int read(@Nonnull final byte[] bytes, final int off, final int len); @Override boolean markSupported(); @Override void mark(final int readlimit); @Override void reset(); Map<HashAlgorithm, HashCode> hashes(); long count(); }
MultiHashingInputStream extends FilterInputStream { public long count() { return count; } MultiHashingInputStream(final Iterable<HashAlgorithm> algorithms, final InputStream inputStream); @Override int read(); @Override int read(@Nonnull final byte[] bytes, final int off, final int len); @Override boolean markSupported(); @Override void mark(final int readlimit); @Override void reset(); Map<HashAlgorithm, HashCode> hashes(); long count();  }