File: BMBImageHash.java

package info (click to toggle)
libphash 0.9.4-1.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,168 kB
  • sloc: sh: 18,059; cpp: 11,339; php: 1,870; xml: 619; java: 173; cs: 139; makefile: 74; awk: 70; ansic: 44
file content (33 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.phash;

import java.math.BigInteger;

/**
 *
 * @author Christoph Zauner
 */
public class BMBImageHash extends ImageHash {

	private byte[] hash;

	@Override
	public String toString() {
		BigInteger bigInteger = new BigInteger(hash);
		return bigInteger.toString(2);
	}

	/**
	 * @return the hash
	 */
	public byte[] getHash() {
		return hash;
	}

	/**
	 * @param hash the hash to set
	 */
	public void setHash(byte[] hash) {
		this.hash = hash;
	}

} // end of class