Class FileChecksumCalculator
java.lang.Object
io.github.slimjar.downloader.verify.FileChecksumCalculator
- All Implemented Interfaces:
ChecksumCalculator
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileChecksumCalculator
@Contract(pure=true) public FileChecksumCalculator(@NotNull @NotNull String algorithm) throws VerificationException - Throws:
VerificationException
-
-
Method Details
-
calculate
@Contract(pure=true) @NotNull public @NotNull String calculate(@NotNull @NotNull File file) throws VerificationException - Specified by:
calculatein interfaceChecksumCalculator- Throws:
VerificationException
-