public static final boolean delimiterNext(byte[] bytes, int startPos, byte[] delim) {

        for (int pos = 0; pos < delim.length; pos++) {
            // check each position
            if (delim[pos] != bytes[startPos + pos]) {
                return false;
            }
        }
        return true;
    }
@Test
    void testDelimiterNext() {
        byte[] bytes = "aaabc".getBytes();
        byte[] delim = "aa".getBytes();
        assertThat(FieldParser.delimiterNext(bytes, 0, delim)).isTrue();
        assertThat(FieldParser.delimiterNext(bytes, 1, delim)).isTrue();
        assertThat(FieldParser.delimiterNext(bytes, 2, delim)).isFalse();
    }