de.undercouch.gradle.tasks.download
Interface VerifySpec

All Known Implementing Classes:
Verify, VerifyAction

public interface VerifySpec

An interface for checksum checks


Method Summary
 void algorithm(java.lang.String algorithm)
          Set the algorithm to use to compute the checksum.
 void checksum(java.lang.String checksum)
          Set the actual checksum to verify against
 java.lang.String getAlgorithm()
           
 java.lang.String getChecksum()
           
 java.io.File getSrc()
           
 void src(java.lang.Object src)
          Sets the file to verify
 

Method Detail

src

void src(java.lang.Object src)
Sets the file to verify

Parameters:
src - the file (either a filename or a File object)

algorithm

void algorithm(java.lang.String algorithm)
Set the algorithm to use to compute the checksum. Defaults to "MD5" (see the list of algorithm names for more information).

Parameters:
algorithm - the name of the algorithm

checksum

void checksum(java.lang.String checksum)
Set the actual checksum to verify against

Parameters:
checksum - the checksum (in hex)

getSrc

java.io.File getSrc()
Returns:
the file to verify

getAlgorithm

java.lang.String getAlgorithm()
Returns:
the algorithm to use to compute the checksum

getChecksum

java.lang.String getChecksum()
Returns:
the actual checksum to verify against (in hex)