com.lazerycode.selenium.download
Class CheckFileHash

java.lang.Object
  extended by com.lazerycode.selenium.download.CheckFileHash

public class CheckFileHash
extends Object


Constructor Summary
CheckFileHash()
           
 
Method Summary
 void fileToCheck(File fileToCheck)
          The File to perform a Hash check upon
 boolean hasAValidHash()
          Performs a expectedFileHash check on a File.
 void hashDetails(String hash, HashType hashType)
          Hash details used to perform the Hash check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckFileHash

public CheckFileHash()
Method Detail

fileToCheck

public void fileToCheck(File fileToCheck)
                 throws FileNotFoundException
The File to perform a Hash check upon

Parameters:
fileToCheck -
Throws:
FileNotFoundException

hashDetails

public void hashDetails(String hash,
                        HashType hashType)
Hash details used to perform the Hash check

Parameters:
hash -
hashType -

hasAValidHash

public boolean hasAValidHash()
                      throws IOException,
                             org.apache.maven.plugin.MojoExecutionException
Performs a expectedFileHash check on a File.

Returns:
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2012. All Rights Reserved.