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 class
FixityResult.FixityState
The possible fixity states (which may be ORed together later)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URI
getComputedChecksum()
long
getComputedSize()
Set<FixityResult.FixityState>
getStatus(long size, URI checksum)
String
getUsedAlgorithm()
boolean
matches(long size)
Check if the fixity result matches the given sizeboolean
matches(long size, URI checksum)
Does the fixity entry match the given size and checksum?boolean
matches(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
-
-