org.apache.tools.ant.types.selectors.modifiedselector
public class ChecksumAlgorithm extends Object implements Algorithm
name | values | description | required |
---|---|---|---|
algorithm.algorithm | ADLER | CRC ( default ) | name of the algorithm the checksum should use | no, defaults to CRC |
Since: Ant 1.7
Version: 2004-06-17
Method Summary | |
---|---|
String | getValue(File file)
Computes a value for a file content with the specified checksum algorithm. |
void | initChecksum() Initialize the checksum interface. |
boolean | isValid()
This algorithm supports only CRC and Adler. |
void | setAlgorithm(String algorithm)
Specifies the algorithm to be used to compute the checksum.
|
String | toString()
Override Object.toString(). |
Parameters: file File object for which the value should be evaluated.
Returns: The value for that file
Returns: true if all is ok, otherwise false.
Parameters: algorithm the digest algorithm to use
Returns: some information about this algorithm.