public class ChecksumFileModule extends AbstractFileDependentModule
config, moduleName, version
Constructor and Description |
---|
ChecksumFileModule() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createChecksum(java.nio.file.Path filename,
java.lang.String type) |
ExtractionResult |
extractInformation(java.nio.file.Path path) |
static java.lang.String[] |
getCryptoImpls(java.lang.String serviceType) |
static java.lang.String |
getMD5Checksum(java.nio.file.Path filename,
java.lang.String type) |
java.lang.String |
getModuleDescription() |
static void |
main(java.lang.String[] args) |
void |
setModuleName()
By implementing this abstract method the name of the module is specified.
|
void |
setVersion() |
extractFileDependentInformation
getConfig, getHash, isSelected, setConfig, setSelected, supportsThisOS, toString
public void setModuleName()
AbstractModule
setModuleName
in class AbstractModule
public ExtractionResult extractInformation(java.nio.file.Path path)
extractInformation
in class AbstractFileDependentModule
public void setVersion()
setVersion
in class AbstractModule
public static byte[] createChecksum(java.nio.file.Path filename, java.lang.String type) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getMD5Checksum(java.nio.file.Path filename, java.lang.String type) throws java.lang.Exception
java.lang.Exception
public java.lang.String getModuleDescription()
getModuleDescription
in class AbstractModule
public static java.lang.String[] getCryptoImpls(java.lang.String serviceType)
public static void main(java.lang.String[] args)