public abstract class BasicCacheEntry extends Object implements CacheEntry
Constructor and Description |
---|
BasicCacheEntry() |
Modifier and Type | Method and Description |
---|---|
Collection<URI> |
checkFixity(Collection<String> algorithms)
Calculate fixity with list of digest algorithms of a CacheEntry by piping it through
a simple fixity-calculating InputStream
|
Collection<FixityResult> |
checkFixity(String algorithm)
Calculate the fixity of a CacheEntry by piping it through
a simple fixity-calculating InputStream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExternalIdentifier, getInputStream
public BasicCacheEntry()
public Collection<FixityResult> checkFixity(String algorithm)
checkFixity
in interface CacheEntry
algorithm
- the digest algorithm to be usedpublic Collection<URI> checkFixity(Collection<String> algorithms) throws UnsupportedAlgorithmException
checkFixity
in interface CacheEntry
algorithms
- the digest algorithms to be usedUnsupportedAlgorithmException
- exceptionCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.