Class ChecksumUtils


  • public final class ChecksumUtils
    extends Object
    • Method Detail

      • checksum

        public static long checksum​(InputStream is)
                             throws IOException
        Compute a checksum for the file or directory that consists of the name, length and the last modified date for a file and its children in case of a directory
        Parameters:
        is - the input stream
        Returns:
        a checksum identifying any change
        Throws:
        IOException - in case of checksum failure.