/** * Given the starting position of a token, this gets the end of the * token, with no separator characters in between. * JVK */ private static final int getTokenEndPosition(byte bytes[], int off, int end, boolean isName) { int pos = off; while (pos < end && (!isSeparator(bytes[pos]) || bytes[pos]=='=' && ALLOW_EQUALS_IN_VALUE && !isName)) { pos++; } if (pos > end) return end; return pos; }
(isSeparator(bytes[pos]) || isWhiteSpace(bytes[pos]))) {pos++; } if (!isSeparator(bytes[pos]) || bytes[pos] == '=' && ALLOW_EQUALS_IN_VALUE) {