Modifier and Type | Method and Description |
---|---|
Checksum |
MultipartD1Node.getChecksum(Identifier pid,
String checksumAlgorithm) |
Checksum |
MultipartD1Node.getChecksum(Session session,
Identifier pid,
String checksumAlgorithm)
This method can handle both the MN and CN method, although the CN overriding method
will need to recast the InvalidRequest exception and use 'null' for the checksumAlgorithm param
|
Modifier and Type | Method and Description |
---|---|
Checksum |
MultipartCNode.getChecksum(Identifier pid) |
Checksum |
MultipartMNode.getChecksum(Identifier pid,
String checksumAlgorithm) |
Checksum |
MultipartCNode.getChecksum(Session session,
Identifier pid) |
Checksum |
MultipartMNode.getChecksum(Session session,
Identifier pid,
String checksumAlgorithm) |
Modifier and Type | Method and Description |
---|---|
Checksum |
MultipartMNode.getChecksum(Identifier pid,
String checksumAlgorithm) |
Checksum |
MultipartCNode.getChecksum(Session session,
Identifier pid) |
Checksum |
MultipartMNode.getChecksum(Session session,
Identifier pid,
String checksumAlgorithm) |
Modifier and Type | Method and Description |
---|---|
Checksum |
CNRead.getChecksum(Identifier pid) |
Checksum |
CNRead.getChecksum(Session session,
Identifier pid)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Checksum |
CNRead.getChecksum(Session session,
Identifier pid) |
Modifier and Type | Method and Description |
---|---|
Checksum |
MNRead.getChecksum(Identifier pid,
String checksumAlgorithm) |
Checksum |
MNRead.getChecksum(Session session,
Identifier pid,
String checksumAlgorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Checksum |
MNRead.getChecksum(Session session,
Identifier pid,
String checksumAlgorithm) |
Modifier and Type | Field and Description |
---|---|
protected Checksum |
SystemMetadata.checksum |
protected Checksum |
ObjectInfo.checksum |
Modifier and Type | Method and Description |
---|---|
Checksum |
ObjectFactory.createChecksum()
Create an instance of
Checksum |
Checksum |
SystemMetadata.getChecksum()
Get the 'checksum' element value.
|
Checksum |
ObjectInfo.getChecksum()
Get the 'checksum' element value.
|
Checksum |
DescribeResponse.getDataONE_Checksum()
get The algorithm (SystemMetadata.algorithm) and Checksum (SystemMetadata.checksum) of the object being examined, drawn from the SystemMetadata.
|
Modifier and Type | Method and Description |
---|---|
JAXBElement<Checksum> |
ObjectFactory.createChecksum(Checksum value)
|
Modifier and Type | Method and Description |
---|---|
JAXBElement<Checksum> |
ObjectFactory.createChecksum(Checksum value)
|
void |
SystemMetadata.setChecksum(Checksum checksum)
Set the 'checksum' element value.
|
void |
ObjectInfo.setChecksum(Checksum checksum)
Set the 'checksum' element value.
|
Constructor and Description |
---|
DescribeResponse(ObjectFormatIdentifier objectFormatID,
BigInteger content_length,
Date last_modified,
Checksum checksum,
BigInteger serialVersion)
instantiate a DescribeResponse object
|
Modifier and Type | Method and Description |
---|---|
static Checksum |
ChecksumUtil.checksum(byte[] object,
String algorithm)
produce a checksum for the given byte array
|
static Checksum |
ChecksumUtil.checksum(InputStream is,
String checksumAlgorithm)
return a Checksum based on the input of the stream
A useful technique when creating systemMetadata is to wrap the the
inputStream in an org.apache.commons.io.input.CountingInputStream,
to get the length of the content from the stream (after calling this method).
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ChecksumUtil.areChecksumsEqual(Checksum checksum1,
Checksum checksum2)
Returns true if and only if checksum1 and checksum2 are equal:
Values are equal, algorithms are equal.
|
Copyright © 2016. All Rights Reserved.