public class FixityResultImpl extends Object implements FixityResult
FixityResult.FixityState| Constructor and Description |
|---|
FixityResultImpl(CacheEntry entry,
long size,
URI checksum)
Prepare a fixity result with the expected size and checksum
|
FixityResultImpl(long size,
URI checksum)
Prepare a fixity result given the computed checksum and size
|
FixityResultImpl(String storeIdentifier,
long size,
URI checksum) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
URI |
getComputedChecksum() |
long |
getComputedSize() |
Set<FixityResult.FixityState> |
getStatus(long size,
URI checksum) |
String |
getStoreIdentifier()
Get the identifier for the entry's store
|
int |
hashCode() |
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
|
String |
toString() |
public FixityResultImpl(long size, URI checksum)
size - checksum - public FixityResultImpl(CacheEntry entry, long size, URI checksum) throws javax.jcr.RepositoryException
entry - size - checksum - javax.jcr.RepositoryExceptionpublic FixityResultImpl(String storeIdentifier, long size, URI checksum)
storeIdentifier - size - checksum - public String getStoreIdentifier()
getStoreIdentifier in interface FixityResultpublic boolean matches(URI checksum)
matches in interface FixityResultchecksum - public boolean matches(long size)
matches in interface FixityResultsize - public boolean matches(long size, URI checksum)
matches in interface FixityResultsize - bitstream size in byteschecksum - checksum URI in the form urn:DIGEST:RESULTpublic Set<FixityResult.FixityState> getStatus(long size, URI checksum)
getStatus in interface FixityResultpublic long getComputedSize()
getComputedSize in interface FixityResultpublic URI getComputedChecksum()
getComputedChecksum in interface FixityResultCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.