public class FixityResult extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FixityResult.FixityState
The possible fixity states (which may be ORed together later)
|
| Modifier and Type | Field and Description |
|---|---|
URI |
computedChecksum
the checksum computed by the fixity check
|
long |
computedSize
the size computed by the fixity check
|
EnumSet<FixityResult.FixityState> |
status
This is a little weird here, and is vestigal from when
this was a JAX-B model as well.
|
| Constructor and Description |
|---|
FixityResult()
Initialize an empty fixity result
|
FixityResult(long size,
URI checksum)
Prepare a fixity result given the computed checksum and size
|
FixityResult(LowLevelCacheEntry entry)
Prepare a fixity result for a Low-Level cache entry
|
FixityResult(LowLevelCacheEntry entry,
long size,
URI checksum)
Prepare a fixity result with the expected size and checksum
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LowLevelCacheEntry |
getEntry()
Get the underlying Low-Level cache entry
|
String |
getStoreIdentifier()
Get the identifier for the entry's store
|
int |
hashCode() |
boolean |
isSuccess()
Was the fixity declared a success
|
boolean |
matches(long size)
Check if the fixity result matches the given size
|
boolean |
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
|
void |
setRepaired()
Mark the fixity result as been automatically repaired
|
String |
toString() |
public EnumSet<FixityResult.FixityState> status
public long computedSize
public URI computedChecksum
public FixityResult()
public FixityResult(LowLevelCacheEntry entry)
entry - public FixityResult(long size,
URI checksum)
size - checksum - public FixityResult(LowLevelCacheEntry entry, long size, URI checksum)
entry - size - checksum - public String getStoreIdentifier()
public LowLevelCacheEntry getEntry()
public boolean matches(URI checksum)
checksum - public boolean matches(long size)
size - public boolean matches(long size,
URI checksum)
size - bitstream size in byteschecksum - checksum URI in the form urn:DIGEST:RESULTpublic boolean isSuccess()
public void setRepaired()
Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.