@Test public void isType2() throws Exception { final Hex hex = new Hex(); final byte[] hash = hex.decode("deadbeefdeadbeefdeadbeefdeadbeef".getBytes()); final byte[] imgID = hex.decode("baadf00dbaadf00dbaadf00dbaadf00d".getBytes()); final byte[] entryID = FsEntryUtils.makeFsEntryKey(imgID, "/etc/passwd".getBytes(), 17); final byte[] rowKey = KeyUtils.makeEntryKey(hash, KeyUtils.MD5, entryID); assertEquals(true, KeyUtils.isType2(rowKey)); assertEquals(false, KeyUtils.isType2(hash)); }
public static boolean isType2(byte[] key) { return key.length > 20; }
KeyUtils { public static boolean isType2(byte[] key) { return key.length > 20; } }
KeyUtils { public static boolean isType2(byte[] key) { return key.length > 20; }  }
KeyUtils { public static boolean isType2(byte[] key) { return key.length > 20; }  static byte[] makeEntryKey(byte[] hash, byte type, byte[] data); static int getHashLength(byte[] key); static byte[] getHash(byte[] key); static int getHash(byte[] hash, byte[] key); static byte[] getFsEntryID(byte[] key); static int getFsEntryID(byte[] id, byte[] key); static byte[] getImageID(byte[] key); static int getImageID(byte[] imgID, byte[] key); static boolean isType2(byte[] key); }
KeyUtils { public static boolean isType2(byte[] key) { return key.length > 20; }  static byte[] makeEntryKey(byte[] hash, byte type, byte[] data); static int getHashLength(byte[] key); static byte[] getHash(byte[] key); static int getHash(byte[] hash, byte[] key); static byte[] getFsEntryID(byte[] key); static int getFsEntryID(byte[] id, byte[] key); static byte[] getImageID(byte[] key); static int getImageID(byte[] imgID, byte[] key); static boolean isType2(byte[] key); static final byte MD5; static final byte SHA1; static final int MD5_LEN; static final int SHA1_LEN; }