public static int findNotIn(byte[] arra, int start, int limit,
                                byte[] charset) {

        int k = 0;

        for (; k < limit; k++) {
            for (int i = 0; i < charset.length; i++) {
                if (arra[k] == charset[i]) {
                    continue;
                }
            }

            return k;
        }

        return -1;
    }
public static int findNotIn ( byte [ ] arra , int start , int limit , byte [ ] charset ) { int k = 0 ; for ( ; k < limit ; k ++ ) { for ( int i = 0 ; i < charset . length ; i ++ ) { if ( arra [ k ] == charset [ i ] ) { continue ; } } return k ; } return - 1 ; }
Returns an index into arra (or -1) where the character is not in the
charset byte array.