@Test public void testComputeEmptyString() throws Exception { assertEquals("d41d8cd98f00b204e9800998ecf8427e", new MD5ChecksumCompute().compute(IOUtils.toInputStream("", Charset.defaultCharset()), new TransferStatus()).hash); assertEquals("d41d8cd98f00b204e9800998ecf8427e", new MD5ChecksumCompute().compute(new NullInputStream(0L), new TransferStatus().length(0)).hash); }
@Override public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException { return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest("MD5", this.normalize(in, status)))); }
MD5ChecksumCompute extends AbstractChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException { return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest("MD5", this.normalize(in, status)))); } }
MD5ChecksumCompute extends AbstractChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException { return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest("MD5", this.normalize(in, status)))); }  }
MD5ChecksumCompute extends AbstractChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException { return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest("MD5", this.normalize(in, status)))); }  @Override Checksum compute(final InputStream in, final TransferStatus status); }
MD5ChecksumCompute extends AbstractChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException { return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest("MD5", this.normalize(in, status)))); }  @Override Checksum compute(final InputStream in, final TransferStatus status);  }