Lines Matching refs:from

61     /** The iterator from which to obtain the next header. */
107 * Obtains the next token from this iteration.
162 * will be obtained from {@link #headerIt}.
165 * @param from the position in the current header at which to
173 protected int findNext(int from)
176 if (from < 0) {
177 // called from the constructor, initialize the first header
182 from = 0;
185 from = findTokenSeparator(from);
188 int start = findTokenStart(from);
202 * Called from {@link #findNext findNext} after the token is identified.
214 * @param value the full header value from which to create a token
229 * @param from the position in the current header at which to
235 protected int findTokenStart(int from) {
236 if (from < 0) {
238 ("Search position must not be negative: " + from);
245 while (!found && (from < to)) {
247 final char ch = this.currentHeader.charAt(from);
250 from++;
251 } else if (isTokenChar(this.currentHeader.charAt(from))) {
256 ("Invalid character before token (pos " + from +
263 from = 0;
270 return found ? from : -1;
280 * @param from the position in the current header at which to
291 protected int findTokenSeparator(int from) {
292 if (from < 0) {
294 ("Search position must not be negative: " + from);
299 while (!found && (from < to)) {
300 final char ch = this.currentHeader.charAt(from);
304 from++;
307 ("Tokens without separator (pos " + from +
311 ("Invalid character after token (pos " + from +
316 return from;
325 * @param from the position of the first character of the token
328 * The behavior is undefined if <code>from</code> does not
331 protected int findTokenEnd(int from) {
332 if (from < 0) {
334 ("Token start position must not be negative: " + from);
338 int end = from+1;