Lines Matching defs:next

48  * various <tt>next</tt> methods.
72 * System.out.println(s.next());
73 * System.out.println(s.next());
102 * <p>The {@link #next} and {@link #hasNext} methods and their
105 * pattern, and then attempt to return the next token. Both <tt>hasNext</tt>
106 * and <tt>next</tt> methods may block waiting for further input. Whether a
108 * associated <tt>next</tt> method will block.
974 // Must look for next delims. Simply attempting to match the
979 // Then look for next delims
983 // Zero length delimiter match; we should find the next one
993 // next delims we want to be sure about, we don't care if
1017 // If we can't find the next delims but no more input is coming,
1064 // The match could go away depending on what is next
1307 // The next operation should occur in the specified radix but
1323 * <p>The various <code>next</code>methods of <code>Scanner</code>
1391 * Finds and returns the next complete token from this scanner.
1397 * @return the next token
1402 public String next() {
1432 * Returns true if the next token matches the pattern constructed from the
1449 * Returns the next token if it matches the pattern constructed from the
1453 * <p> An invocation of this method of the form <tt>next(pattern)</tt>
1455 * <tt>next(Pattern.compile(pattern))</tt>.
1458 * @return the next token
1462 public String next(String pattern) {
1463 return next(patternCache.forName(pattern));
1467 * Returns true if the next complete token matches the specified pattern.
1498 * Returns the next token if it matches the specified pattern. This
1505 * @return the next token
1509 public String next(Pattern pattern) {
1567 * separator at the end. The position is set to the beginning of the next
1599 * Attempts to find the next occurrence of a pattern constructed from the
1615 * Attempts to find the next occurrence of the specified pattern ignoring
1616 * delimiters. If the pattern is found before the next line separator, the
1619 * If no such pattern is detected in the input up to the next line
1637 // Expand buffer to include the next newline or end of input
1644 break; // up to next newline
1655 // If there is nothing between the current pos and the next
1665 * Attempts to find the next occurrence of a pattern constructed from the
1683 * Attempts to find the next occurrence of the specified pattern.
1798 * Returns true if the next token in this scanner's input can be
1803 * @return true if and only if this scanner's next token is a valid
1812 * Scans the next token of the input into a boolean value and returns
1814 * if the next token cannot be translated into a valid boolean value.
1819 * @throws InputMismatchException if the next token is not a valid boolean
1825 return Boolean.parseBoolean(next(boolPattern()));
1829 * Returns true if the next token in this scanner's input can be
1833 * @return true if and only if this scanner's next token is a valid
1842 * Returns true if the next token in this scanner's input can be
1847 * @return true if and only if this scanner's next token is a valid
1868 * Scans the next token of the input as a <tt>byte</tt>.
1877 * if the next token does not match the <i>Integer</i>
1887 * Scans the next token of the input as a <tt>byte</tt>.
1889 * if the next token cannot be translated into a valid byte value as
1893 * <p> If the next token matches the <a
1907 * if the next token does not match the <i>Integer</i>
1922 // Search for next byte
1924 String s = next(integerPattern());
1935 * Returns true if the next token in this scanner's input can be
1939 * @return true if and only if this scanner's next token is a valid
1948 * Returns true if the next token in this scanner's input can be
1953 * @return true if and only if this scanner's next token is a valid
1974 * Scans the next token of the input as a <tt>short</tt>.
1983 * if the next token does not match the <i>Integer</i>
1993 * Scans the next token of the input as a <tt>short</tt>.
1995 * if the next token cannot be translated into a valid short value as
1999 * <p> If the next token matches the <a
2013 * if the next token does not match the <i>Integer</i>
2028 // Search for next short
2030 String s = next(integerPattern());
2041 * Returns true if the next token in this scanner's input can be
2045 * @return true if and only if this scanner's next token is a valid
2054 * Returns true if the next token in this scanner's input can be
2059 * @return true if and only if this scanner's next token is a valid
2104 * Scans the next token of the input as an <tt>int</tt>.
2113 * if the next token does not match the <i>Integer</i>
2123 * Scans the next token of the input as an <tt>int</tt>.
2125 * if the next token cannot be translated into a valid int value as
2129 * <p> If the next token matches the <a
2143 * if the next token does not match the <i>Integer</i>
2158 // Search for next int
2160 String s = next(integerPattern());
2171 * Returns true if the next token in this scanner's input can be
2175 * @return true if and only if this scanner's next token is a valid
2184 * Returns true if the next token in this scanner's input can be
2189 * @return true if and only if this scanner's next token is a valid
2210 * Scans the next token of the input as a <tt>long</tt>.
2219 * if the next token does not match the <i>Integer</i>
2229 * Scans the next token of the input as a <tt>long</tt>.
2231 * if the next token cannot be translated into a valid long value as
2235 * <p> If the next token matches the <a
2249 * if the next token does not match the <i>Integer</i>
2265 String s = next(integerPattern());
2329 * Returns true if the next token in this scanner's input can be
2333 * @return true if and only if this scanner's next token is a valid
2352 * Scans the next token of the input as a <tt>float</tt>.
2354 * if the next token cannot be translated into a valid float value as
2358 * <p> If the next token matches the <a
2373 * if the next token does not match the <i>Float</i>
2388 return Float.parseFloat(processFloatToken(next(floatPattern())));
2396 * Returns true if the next token in this scanner's input can be
2400 * @return true if and only if this scanner's next token is a valid
2419 * Scans the next token of the input as a <tt>double</tt>.
2421 * if the next token cannot be translated into a valid double value.
2425 * <p> If the next token matches the <a
2440 * if the next token does not match the <i>Float</i>
2454 // Search for next float
2456 return Double.parseDouble(processFloatToken(next(floatPattern())));
2466 * Returns true if the next token in this scanner's input can be
2471 * @return true if and only if this scanner's next token is a valid
2480 * Returns true if the next token in this scanner's input can be
2486 * @return true if and only if this scanner's next token is a valid
2507 * Scans the next token of the input as a {@link java.math.BigInteger
2517 * if the next token does not match the <i>Integer</i>
2527 * Scans the next token of the input as a {@link java.math.BigInteger
2530 * <p> If the next token matches the <a
2542 * if the next token does not match the <i>Integer</i>
2557 // Search for next int
2559 String s = next(integerPattern());
2570 * Returns true if the next token in this scanner's input can be
2575 * @return true if and only if this scanner's next token is a valid
2594 * Scans the next token of the input as a {@link java.math.BigDecimal
2597 * <p> If the next token matches the <a
2608 * if the next token does not match the <i>Decimal</i>
2622 // Search for next float
2624 String s = processFloatToken(next(decimalPattern()));