Interface ImmutableChecksumsSFV

All Known Subinterfaces:
MutableChecksumsSFV
All Known Implementing Classes:
SfvChecksumImpl

public interface ImmutableChecksumsSFV
Immutable checksum collection in simple file verification (SFV) file format, which only allows to read serialized file checksums or a combined checksum.
  • Method Details

    • write

      void write(OutputStream stream) throws IOException
      Write the checksum collection in SFV format to the given output stream.
      Parameters:
      stream - in which the data will be written to
      Throws:
      IOException
    • getChecksums

      SortedMap<String,Long> getChecksums()
      Returns:
      the map containing the individual file checksums
    • sameChecksums

      boolean sameChecksums(ImmutableChecksumsSFV o)
      Returns if all file checksums match exactly.
      Parameters:
      o - The other checksum
      Returns:
      boolean denoting match