Interface FixityResult


public interface FixityResult
Since:
Feb 18, 2014
Author:
bbpennel
  • Method Details

    • matches

      boolean matches(URI checksum)
      Check if the fixity result matches the given checksum URI
      Parameters:
      checksum - the given checksum uri
      Returns:
      fixity result matches the given checksum URI
    • matches

      boolean matches(long size)
      Check if the fixity result matches the given size
      Parameters:
      size - the given size
      Returns:
      fixity result matches the given size
    • matches

      boolean matches(long size, URI checksum)
      Does the fixity entry match the given size and checksum?
      Parameters:
      size - bitstream size in bytes
      checksum - checksum URI
      Returns:
      true if both conditions matched
    • getStatus

      Set<FixityResult.FixityState> getStatus(long size, URI checksum)
      Parameters:
      size - the size
      checksum - the checksum uri
      Returns:
      the status
    • getComputedSize

      Returns:
      the computed size
    • getComputedChecksum

      Returns:
      the computed checksum
    • getUsedAlgorithm

      Returns:
      the algorithm uses to compute the checksum