public static boolean containsAt(byte[] array, byte[] searchFor, int index) {
        for (int i = 0; i < searchFor.length; i++) {
            if (index + i >= array.length || array[index + i] != searchFor[i]) {
                return false;
            }
        }
        return true;
    }
public static boolean containsAt ( byte [ ] array , byte [ ] searchFor , int index ) { for ( int i = 0 ; i < searchFor . length ; i ++ ) { if ( index + i >= array . length || array [ index + i ] != searchFor [ i ] ) { return false ; } } return true ; }
Returns <code>true</code> if the specified array contains the specified sub-array at the specified index.

@param array the array to search in
@param searchFor the sub-array to search for
@param index the index at which to search
@return whether or not the specified array contains the specified sub-array at the specified index