@Test public void testConstructSha1() { Checksum checksum = new Checksum( ChecksumAlgorithm.SHA1 ); Assert.assertEquals( "Checksum.algorithm", checksum.getAlgorithm().getAlgorithm(), ChecksumAlgorithm.SHA1 .getAlgorithm() ); }
public ChecksumAlgorithm getAlgorithm() { return this.checksumAlgorithm; }
Checksum { public ChecksumAlgorithm getAlgorithm() { return this.checksumAlgorithm; } }
Checksum { public ChecksumAlgorithm getAlgorithm() { return this.checksumAlgorithm; } Checksum( ChecksumAlgorithm checksumAlgorithm ); }
Checksum { public ChecksumAlgorithm getAlgorithm() { return this.checksumAlgorithm; } Checksum( ChecksumAlgorithm checksumAlgorithm ); String getChecksum(); byte[] getChecksumBytes(); ChecksumAlgorithm getAlgorithm(); void reset(); Checksum update( byte[] buffer, int offset, int size ); Checksum update( ByteBuffer buffer); Checksum finish(); boolean compare(byte[] cmp); boolean compare(String hexString); }
Checksum { public ChecksumAlgorithm getAlgorithm() { return this.checksumAlgorithm; } Checksum( ChecksumAlgorithm checksumAlgorithm ); String getChecksum(); byte[] getChecksumBytes(); ChecksumAlgorithm getAlgorithm(); void reset(); Checksum update( byte[] buffer, int offset, int size ); Checksum update( ByteBuffer buffer); Checksum finish(); boolean compare(byte[] cmp); boolean compare(String hexString);  }