Package org.fcrepo.kernel.api.utils
Interface FixityResult
-
public interface FixityResult
- Since:
- Feb 18, 2014
- Author:
- bbpennel
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFixityResult.FixityStateThe possible fixity states (which may be ORed together later)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URIgetComputedChecksum()longgetComputedSize()Set<FixityResult.FixityState>getStatus(long size, URI checksum)StringgetUsedAlgorithm()booleanmatches(long size)Check if the fixity result matches the given sizebooleanmatches(long size, URI checksum)Does the fixity entry match the given size and checksum?booleanmatches(URI checksum)Check if the fixity result matches the given checksum URI
-
-
-
Method Detail
-
matches
boolean matches(URI checksum)
Check if the fixity result matches the given checksum URI- Parameters:
checksum- the given checksum uri- Returns:
- fixity result matches the given checksum URI
-
matches
boolean matches(long size)
Check if the fixity result matches the given size- Parameters:
size- the given size- Returns:
- fixity result matches the given size
-
matches
boolean matches(long size, URI checksum)
Does the fixity entry match the given size and checksum?- Parameters:
size- bitstream size in byteschecksum- checksum URI- Returns:
- true if both conditions matched
-
getStatus
Set<FixityResult.FixityState> getStatus(long size, URI checksum)
- Parameters:
size- the sizechecksum- the checksum uri- Returns:
- the status
-
getComputedSize
long getComputedSize()
- Returns:
- the computed size
-
getComputedChecksum
URI getComputedChecksum()
- Returns:
- the computed checksum
-
getUsedAlgorithm
String getUsedAlgorithm()
- Returns:
- the algorithm uses to compute the checksum
-
-