Code example for MessageDigest

Methods: getAlgorithm

0
    public CalculateChecksumJob(ProgressDialog progressDialog, MainFrame mainFrame, FileSet files, AbstractFile checksumFile, MessageDigest digest) {
        super(progressDialog, mainFrame, files);
 
        this.checksumFile = checksumFile;
        this.digest = digest;
        this.useSfvFormat = digest.getAlgorithm().equalsIgnoreCase("CRC32");
 
        this.baseSourcePath = getBaseSourceFolder().getAbsolutePath(true);
    } 
 
 
    //////////////////////////////////// 
    // TransferFileJob implementation // 
    //////////////////////////////////// 
 
    @Override 
    protected boolean processFile(AbstractFile file, Object recurseParams) {
        // Skip directories 
        if(file.isDirectory()) {
            do {		// Loop for retry