@Test public void writeOffsetToOutputStream() throws Exception { underTest.write(new byte[50], 10, 30); verify(outputStream, times(30)).write(0); }
@Override public void write(final int b) throws IOException { out.write(b); for (Hasher hasher : hashers.values()) { hasher.putByte((byte)b); } }
MultiHashingOutputStream extends FilterOutputStream { @Override public void write(final int b) throws IOException { out.write(b); for (Hasher hasher : hashers.values()) { hasher.putByte((byte)b); } } }
MultiHashingOutputStream extends FilterOutputStream { @Override public void write(final int b) throws IOException { out.write(b); for (Hasher hasher : hashers.values()) { hasher.putByte((byte)b); } } MultiHashingOutputStream(final Iterable<HashAlgorithm> algorithms, final OutputStream out); }
MultiHashingOutputStream extends FilterOutputStream { @Override public void write(final int b) throws IOException { out.write(b); for (Hasher hasher : hashers.values()) { hasher.putByte((byte)b); } } MultiHashingOutputStream(final Iterable<HashAlgorithm> algorithms, final OutputStream out); @Override void write(final int b); Map<HashAlgorithm, HashCode> hashes(); }
MultiHashingOutputStream extends FilterOutputStream { @Override public void write(final int b) throws IOException { out.write(b); for (Hasher hasher : hashers.values()) { hasher.putByte((byte)b); } } MultiHashingOutputStream(final Iterable<HashAlgorithm> algorithms, final OutputStream out); @Override void write(final int b); Map<HashAlgorithm, HashCode> hashes();  }