com.ibm.websphere.management.repository

Interface DocumentDigest


  1. public interface DocumentDigest
A DocumentDigest is a compact representation (like a checksum) of the contents of a Document. 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

Modifier and Type Method and Description
  1. boolean
equals(byte[] data)
Compares this digest to the digest of a byte array.
  1. boolean
equals(java.io.InputStream input)
Compares this digest to the digest of an input stream.
  1. boolean
equals(java.lang.Object digest)
Compares this digest to the specified object.

Method Detail

equals

  1. boolean equals(java.lang.Object digest)
Compares this digest to the specified object.
Overrides:
equals in class java.lang.Object
Parameters:
digest - object to be compared to this digest
Returns:
true if digest is a DocumentDigest equal to this digest

equals

  1. 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:
true if the digest computed for data is equal to this digest

equals

  1. 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:
true if the digest computed for input is equal to this digest