Here you can find the source of bytesCmp(byte[] oi, byte[] oj)
public static boolean bytesCmp(byte[] oi, byte[] oj)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean bytesCmp(byte[] oi, byte[] oj) { if (oi.length - oj.length != 0) return false; for (int i = 0; i < oi.length; i++) { if (oi[i] != oj[i]) return false; }/*from w w w. j av a2 s . c om*/ return true; } }