Package org.fcrepo.kernel.api.utils
Interface FixityResult
public interface FixityResult
- Since:
- Feb 18, 2014
- Author:
- bbpennel
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe possible fixity states (which may be ORed together later) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanmatches(long size) Check if the fixity result matches the given sizebooleanDoes the fixity entry match the given size and checksum?booleanCheck if the fixity result matches the given checksum URI
-
Method Details
-
matches
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
Check if the fixity result matches the given size- Parameters:
size- the given size- Returns:
- fixity result matches the given size
-
matches
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
- Parameters:
size- the sizechecksum- the checksum uri- Returns:
- the status
-
getComputedSize
long getComputedSize()- Returns:
- the computed size
-
getComputedChecksum
- Returns:
- the computed checksum
-
getUsedAlgorithm
- Returns:
- the algorithm uses to compute the checksum
-