Searched refs:useDelimiter (Results 1 – 3 of 3) sorted by relevance
33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile()
540 s.useDelimiter(Pattern.compile("\\w+")); in test_useDelimiter_LPattern()544 s.useDelimiter((Pattern) null); in test_useDelimiter_LPattern()554 s.useDelimiter((String) null); in test_useDelimiter_String()560 s.useDelimiter("\\w+"); in test_useDelimiter_String()618 s = new Scanner("aab*b*").useDelimiter("\\*"); in test_remove()749 s = new Scanner("1**2").useDelimiter("\\*"); in test_next()754 s = new Scanner(" \t 1 \t 2").useDelimiter("\\s*"); in test_next()763 s = new Scanner("a").useDelimiter("a?"); in test_next()770 s = new Scanner("aa").useDelimiter("a?"); in test_next()779 s = new Scanner("word( )test( )").useDelimiter("\\( \\)"); in test_next()[all …]
1147 public Scanner useDelimiter(Pattern pattern) { in useDelimiter() method in Scanner1166 public Scanner useDelimiter(String pattern) { in useDelimiter() method in Scanner