Switch to side-by-side view
--- a/tool/src/ssdeep/ssdeep.java +++ b/tool/src/ssdeep/ssdeep.java @@ -357,9 +357,9 @@ /** /// Calculates the SpamSum hash for specified <paramref name="stream"/>. - - @param stream The stream. + * @param file @return SpamSum signature + * @throws java.io.IOException */ public String fuzzy_hash_file(File file) throws IOException { @@ -401,6 +401,9 @@ //stream.Position = filepos; stream.seek(filepos); + + // close the stream + stream.close(); return ctx.signature.toString(); }