Lines Matching defs:Scanner

45  * <p>A {@code Scanner} breaks its input into tokens using a
53 * Scanner sc = new Scanner(System.in);
60 * Scanner sc = new Scanner(new File("myNumbers"));
70 * Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
90 * Scanner s = new Scanner(input);
140 * <p>When a {@code Scanner} is closed, it will close its input source
143 * <p>A {@code Scanner} is not safe for multithreaded use without
147 * any method of a {@code Scanner} will cause a
307 public final class Scanner implements Iterator<String>, Closeable {
315 // The index into the buffer currently held by the Scanner
427 // Scanner will do the right thing
524 * Constructs a {@code Scanner} that returns values scanned
530 private Scanner(Readable source, Pattern pattern) {
544 * Constructs a new {@code Scanner} that produces values scanned
550 public Scanner(Readable source) {
555 * Constructs a new {@code Scanner} that produces values scanned
562 public Scanner(InputStream source) {
567 * Constructs a new {@code Scanner} that produces values scanned
577 public Scanner(InputStream source, String charsetName) {
602 * Constructs a new {@code Scanner} that produces values scanned
610 public Scanner(File source) throws FileNotFoundException {
615 * Constructs a new {@code Scanner} that produces values scanned
626 public Scanner(File source, String charsetName)
632 private Scanner(File source, CharsetDecoder dec)
653 * Constructs a new {@code Scanner} that produces values scanned
665 public Scanner(Path source)
672 * Constructs a new {@code Scanner} that produces values scanned
687 public Scanner(Path source, String charsetName) throws IOException {
691 private Scanner(Path source, Charset charset) throws IOException {
696 * Constructs a new {@code Scanner} that produces values scanned
701 public Scanner(String source) {
706 * Constructs a new {@code Scanner} that produces values scanned
713 public Scanner(ReadableByteChannel source) {
723 * Constructs a new {@code Scanner} that produces values scanned
733 public Scanner(ReadableByteChannel source, String charsetName) {
786 throw new IllegalStateException("Scanner closed");
1071 throw new IllegalStateException("Scanner closed");
1106 * {@code Scanner}'s underlying {@code Readable}. This method
1116 * Returns the {@code Pattern} this {@code Scanner} is currently
1131 public Scanner useDelimiter(Pattern pattern) {
1151 public Scanner useDelimiter(String pattern) {
1183 public Scanner useLocale(Locale locale) {
1254 public Scanner useRadix(int radix) {
1286 * <p>The various {@code next} methods of {@code Scanner}
1306 * <p>Returns the string representation of this {@code Scanner}. The
1307 * string representation of a {@code Scanner} contains information
1314 sb.append("java.util.Scanner");
1729 public Scanner skip(Pattern pattern) {
1762 public Scanner skip(String pattern) {
2676 public Scanner reset() {
2718 * List<String> result = new Scanner("abc,def,,ghi")
2803 * try (Scanner sc = new Scanner(Paths.get("input.txt"))) {