Switch to unified view

a/tool/src/ssdeep/ssdeep.java b/tool/src/ssdeep/ssdeep.java
...
...
355
        return maxLength;
355
        return maxLength;
356
    }
356
    }
357
357
358
    /**
358
    /**
359
     /// Calculates the SpamSum hash for specified <paramref name="stream"/>.
359
     /// Calculates the SpamSum hash for specified <paramref name="stream"/>.
360
360
     * @param file
361
     @param stream The stream.
362
     @return SpamSum signature
361
     @return SpamSum signature
362
     * @throws java.io.IOException
363
    */
363
    */
364
    public String fuzzy_hash_file(File file) throws IOException
364
    public String fuzzy_hash_file(File file) throws IOException
365
    {
365
    {
366
        RandomAccessFile stream = new RandomAccessFile(file, "r");
366
        RandomAccessFile stream = new RandomAccessFile(file, "r");
367
        if (null == stream)
367
        if (null == stream)
...
...
399
        //byte[] result = new byte[FUZZY_MAX_RESULT];
399
        //byte[] result = new byte[FUZZY_MAX_RESULT];
400
        //Copy(ctx.ret, 0, result, 0, FUZZY_MAX_RESULT);
400
        //Copy(ctx.ret, 0, result, 0, FUZZY_MAX_RESULT);
401
401
402
        //stream.Position = filepos;
402
        //stream.Position = filepos;
403
        stream.seek(filepos);
403
        stream.seek(filepos);
404
        
405
        // close the stream
406
        stream.close();
404
407
405
        return ctx.signature.toString();
408
        return ctx.signature.toString();
406
    }
409
    }
407
    public String fuzzy_hash_file(String file) throws FileNotFoundException, IOException
410
    public String fuzzy_hash_file(String file) throws FileNotFoundException, IOException
408
    {
411
    {