Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors in Java bindings #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/AudioHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class AudioHash extends Hash
{
public int[] hash;
Expand Down
1 change: 0 additions & 1 deletion bindings/java/org/pHash/BMBImageHash.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class BMBImageHash extends ImageHash {

private byte[] hash;

@Override
public String toString() {
BigInteger bigInteger = new BigInteger(hash);
return bigInteger.toString(2);
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/DCTImageHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class DCTImageHash extends ImageHash
{
public long hash;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/Hash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public abstract class Hash
{
protected String filename;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/ImageHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public abstract class ImageHash extends Hash
{
}
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/MHImageHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class MHImageHash extends ImageHash
{
byte[] hash;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/MVPTree.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class MVPTree
{
protected String mvpFile;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/TextHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class TextHash extends Hash
{
public String[] hash;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/VideoHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

public class VideoHash extends Hash
{
public long[] hash;
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/org/pHash/pHash.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package org.pHash;

import java.io.*;

public class pHash
Expand Down
Loading