Class HashedFile

    • Constructor Detail

      • HashedFile

        public HashedFile​(HInput input)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • HashedFile

        public HashedFile​(long size,
                          byte[] digest)
      • HashedFile

        public HashedFile​(java.nio.file.Path file,
                          long size,
                          boolean digest)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • isSame

        public boolean isSame​(HashedFile o)
      • isSame

        public boolean isSame​(java.nio.file.Path file,
                              boolean digest)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • isSameDigest

        public boolean isSameDigest​(byte[] digest)
      • write

        public void write​(HOutput output)
                   throws java.io.IOException
        Specified by:
        write in class StreamObject
        Throws:
        java.io.IOException