Package org.fcrepo.kernel.api.utils
Interface CacheEntry
-
public interface CacheEntry
A CacheEntry abstraction for the various possible types of entries- Author:
- fasseg
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<FixityResult>checkFixity(String algorithm)Check the fixity of aCacheEntryCollection<URI>checkFixity(Collection<String> algorithms)Check the fixity of aCacheEntrywith list of digest algorithmsStringgetExternalIdentifier()Generate a human-readable identifier for the location of this entryInputStreamgetInputStream()Get a raw input stream from the underlying store
-
-
-
Method Detail
-
checkFixity
Collection<FixityResult> checkFixity(String algorithm)
Check the fixity of aCacheEntry- Parameters:
algorithm- the given algorithm- Returns:
- a
FixityResultcontaining the relevant data
-
checkFixity
Collection<URI> checkFixity(Collection<String> algorithms) throws UnsupportedAlgorithmException
Check the fixity of aCacheEntrywith list of digest algorithms- Parameters:
algorithms- the given algorithms- Returns:
- a
FixityResultcontaining the relevant data - Throws:
UnsupportedAlgorithmException- in case the fixity check tries to use an unsupported algorithm
-
getInputStream
InputStream getInputStream()
Get a raw input stream from the underlying store- Returns:
- the content for this entry
-
getExternalIdentifier
String getExternalIdentifier()
Generate a human-readable identifier for the location of this entry- Returns:
- human-readable identifier for the location of this entry
-
-