com.ibm.websphere.management.repository
Interface DocumentDigest
-
public interface DocumentDigestA DocumentDigest is a compact representation (like a checksum) of the contents of aDocument. The digest can be used to efficiently determine whether document contents have changed. This interface does not define the algorithm used to compute the digest.
-
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(byte[] data)Compares this digest to the digest of a byte array.booleanequals(java.io.InputStream input)Compares this digest to the digest of an input stream.booleanequals(java.lang.Object digest)Compares this digest to the specified object.
-
-
-
Method Detail
-
equals
boolean equals(java.lang.Object digest)
Compares this digest to the specified object.- Overrides:
equalsin classjava.lang.Object- Parameters:
digest- object to be compared to this digest- Returns:
trueifdigestis aDocumentDigestequal to this digest
-
equals
boolean equals(byte[] data)
Compares this digest to the digest of a byte array.- Parameters:
data- byte array for which a digest will be computed- Returns:
trueif the digest computed fordatais equal to this digest
-
equals
boolean equals(java.io.InputStream input)
Compares this digest to the digest of an input stream.- Parameters:
input- input stream for which a digest will be computed- Returns:
trueif the digest computed forinputis equal to this digest
-
-