Searched refs:scanner (Results 1 – 9 of 9) sorted by relevance
31 Scanner scanner = new Scanner("123 45"); in testReset() local33 scanner.useDelimiter("123"); in testReset()34 scanner.useLocale(locale); in testReset()35 scanner.useRadix(8); in testReset()36 assertEquals("123", scanner.delimiter().pattern()); in testReset()37 assertEquals(locale, scanner.locale()); in testReset()38 assertEquals(8, scanner.radix()); in testReset()40 scanner.reset(); in testReset()41 assertEquals("\\p{javaWhitespace}+", scanner.delimiter().pattern()); in testReset()42 assertEquals(Locale.getDefault(Locale.Category.FORMAT), scanner.locale()); in testReset()[all …]
33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile() local35 while (scanner.hasNext()) { in testParseLargeFile()36 scanner.next(); in testParseLargeFile()38 scanner.close(); in testParseLargeFile()
417 Scanner scanner = new Scanner(file); in changeProperties() local418 assertEquals(newValue, scanner.nextLine()); in changeProperties()419 scanner.close(); in changeProperties()
713 Scanner scanner = new Scanner(out.toString()); in test_storeLjava_io_WriterLjava_lang_String() local714 assertTrue(scanner.nextLine().startsWith("#A Header")); in test_storeLjava_io_WriterLjava_lang_String()715 assertTrue(scanner.nextLine().startsWith("#")); in test_storeLjava_io_WriterLjava_lang_String()
5635 final Scanner scanner = new Scanner(pis); in test_hasNextLine_sequence() local5640 while (scanner.hasNextLine()) { in test_hasNextLine_sequence()5641 String line = scanner.nextLine(); in test_hasNextLine_sequence()5663 assertFalse(scanner.hasNextLine()); in test_hasNextLine_sequence()
527 try (Scanner scanner = new Scanner(text)) { in boundaryDelimTest() argument528 scanner.useDelimiter("-;(-)?"); in boundaryDelimTest()529 while (scanner.hasNext()) { in boundaryDelimTest()530 scanner.next(); in boundaryDelimTest()550 Scanner scanner = new Scanner("777 dog"); in cacheTest() local551 scanner.hasNextInt(); in cacheTest()552 scanner.findInLine("777"); in cacheTest()554 scanner.nextInt(); in cacheTest()561 scanner = new Scanner("777 dog"); in cacheTest()562 scanner.hasNextInt(); in cacheTest()[all …]
27 * returned <code>true</code>. If the match is successful, the scanner 33 * @throws IllegalStateException if this scanner is closed
74 scanner: in expand()89 break scanner; in expand() local102 break scanner; in expand() local138 break scanner; in expand() local
107 Scanner scanner = new Scanner(new ByteArrayInputStream(data)); in readAll() local108 while (scanner.hasNext()) { in readAll()109 scanner.nextLine(); in readAll()