Uses of Enum Class
org.biojava.nbio.core.util.FileDownloadUtils.Hash
Packages that use FileDownloadUtils.Hash
-
Uses of FileDownloadUtils.Hash in org.biojava.nbio.core.util
Methods in org.biojava.nbio.core.util that return FileDownloadUtils.HashModifier and TypeMethodDescriptionstatic FileDownloadUtils.HashFileDownloadUtils.hashFromETag(String eTagHeaderValue) Determines which hashing algorithm anETagheader value represents, based on the length of the hex digest it contains.static FileDownloadUtils.HashReturns the enum constant of this class with the specified name.static FileDownloadUtils.Hash[]FileDownloadUtils.Hash.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.biojava.nbio.core.util with parameters of type FileDownloadUtils.HashModifier and TypeMethodDescriptionstatic StringFileDownloadUtils.computeHash(File file, FileDownloadUtils.Hash hash) Computes the digest of a file.static StringFileDownloadUtils.computeHash(InputStream in, FileDownloadUtils.Hash hash) Computes the digest of a stream.static voidFileDownloadUtils.createValidationFiles(URLConnection resourceUrlConnection, File localDestination, URL hashURL, FileDownloadUtils.Hash hash) Creates validation files beside a file to be downloaded.
Whenever possible, for afile.extfile, it createsfile.ext.sizeandfile.hash_XXXXin the same folder wherefile.extexists (XXXX may be DM5, SHA1, or SHA256).static voidFileDownloadUtils.createValidationFiles(URLConnection resourceUrlConnection, File localDestination, URL hashURL, FileDownloadUtils.Hash hash, FileDownloadUtils.ETagPolicy eTagPolicy) Creates validation files beside a file to be downloaded, with explicit control over how theETagresponse header is treated.static voidFileDownloadUtils.createValidationFiles(URL url, File localDestination, URL hashURL, FileDownloadUtils.Hash hash) Creates validation files beside a file to be downloaded.
Whenever possible, for afile.extfile, it createsfile.ext.sizeandfile.hashfor in the same folder wherefile.extexists.static voidFileDownloadUtils.createValidationFiles(URL url, File localDestination, URL hashURL, FileDownloadUtils.Hash hash, FileDownloadUtils.ETagPolicy eTagPolicy) Creates validation files beside a file to be downloaded, with explicit control over how theETagresponse header is treated.static voidFileDownloadUtils.downloadFileWithValidation(URL url, File destination, URL hashURL, FileDownloadUtils.Hash hash, FileDownloadUtils.ETagPolicy eTagPolicy) Downloads a file and writes its validation metadata in a single pass over a single connection.static StringFileDownloadUtils.getAlgorithmName(FileDownloadUtils.Hash hash) The JDK name of a hashing algorithm, which differs from the enum constant for the SHA variants.static booleanFileDownloadUtils.verifyHash(File file, FileDownloadUtils.Hash hash, String expectedHex) Checks a file against an expected digest.static voidFileDownloadUtils.writeHashFile(File localDestination, FileDownloadUtils.Hash hash, String hexDigest) Writes a<name>.hash_<ALGORITHM>sidecar file containing the given digest as bare lowercase hex.