Lines Matching refs:Scanner

45  * <p>A <code>Scanner</code> breaks its input into tokens using a
53 * Scanner sc = new Scanner(System.in);
60 * Scanner sc = new Scanner(new File("myNumbers"));
69 * Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
87 * Scanner s = new Scanner(input);
133 * <p>When a <code>Scanner</code> is closed, it will close its input source
136 * <p>A <code>Scanner</code> is not safe for multithreaded use without
140 * any method of a <code>Scanner</code> will cause a
348 public final class Scanner implements Iterator<String>, Closeable {
356 // The index into the buffer currently held by the Scanner
471 // Scanner will do the right thing
568 * Constructs a <code>Scanner</code> that returns values scanned
575 private Scanner(Readable source, Pattern pattern) {
589 * Constructs a new <code>Scanner</code> that produces values scanned
595 public Scanner(Readable source) {
600 * Constructs a new <code>Scanner</code> that produces values scanned
607 public Scanner(InputStream source) {
612 * Constructs a new <code>Scanner</code> that produces values scanned
622 public Scanner(InputStream source, String charsetName) {
647 * Constructs a new <code>Scanner</code> that produces values scanned
655 public Scanner(File source) throws FileNotFoundException {
660 * Constructs a new <code>Scanner</code> that produces values scanned
671 public Scanner(File source, String charsetName)
677 private Scanner(File source, CharsetDecoder dec)
698 * Constructs a new <code>Scanner</code> that produces values scanned
710 public Scanner(Path source)
717 * Constructs a new <code>Scanner</code> that produces values scanned
732 public Scanner(Path source, String charsetName) throws IOException {
736 private Scanner(Path source, Charset charset) throws IOException {
741 * Constructs a new <code>Scanner</code> that produces values scanned
746 public Scanner(String source) {
751 * Constructs a new <code>Scanner</code> that produces values scanned
758 public Scanner(ReadableByteChannel source) {
768 * Constructs a new <code>Scanner</code> that produces values scanned
778 public Scanner(ReadableByteChannel source, String charsetName) {
831 throw new IllegalStateException("Scanner closed");
1115 throw new IllegalStateException("Scanner closed");
1150 * <code>Scanner</code>'s underlying <code>Readable</code>. This method
1160 * Returns the <code>Pattern</code> this <code>Scanner</code> is currently
1175 public Scanner useDelimiter(Pattern pattern) {
1194 public Scanner useDelimiter(String pattern) {
1225 public Scanner useLocale(Locale locale) {
1295 public Scanner useRadix(int radix) {
1323 * <p>The various <code>next</code>methods of <code>Scanner</code>
1343 * <p>Returns the string representation of this <code>Scanner</code>. The
1344 * string representation of a <code>Scanner</code> contains information
1351 sb.append("java.util.Scanner");
1758 public Scanner skip(Pattern pattern) {
1791 public Scanner skip(String pattern) {
2653 public Scanner reset() {