- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for LineProcessor (0.09 sec)
-
android/guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testReadLines_withLineProcessor() throws IOException { URL resource = getClass().getResource("testdata/alice_in_wonderland.txt"); LineProcessor<List<String>> collectAndLowercaseAndTrim = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override public boolean processLine(String line) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testReadLines_withLineProcessor() throws IOException { String text = "a\nb\nc"; // Test a LineProcessor that always returns false. Reader r = new StringReader(text); LineProcessor<Integer> alwaysFalse = new LineProcessor<Integer>() { int seen; @Override public boolean processLine(String line) { seen++;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testReadLines_withLineProcessor() throws IOException { String text = "a\nb\nc"; // Test a LineProcessor that always returns false. Reader r = new StringReader(text); LineProcessor<Integer> alwaysFalse = new LineProcessor<Integer>() { int seen; @Override public boolean processLine(String line) { seen++;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava/src/com/google/common/io/Resources.java
* @param callback the LineProcessor to use to handle the lines * @return the output of processing the lines * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // some processors won't return a useful result @ParametricNullness public static <T extends @Nullable Object> T readLines( URL url, Charset charset, LineProcessor<T> callback) throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 02 13:50:22 UTC 2024 - 7.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
} } public void testReadLines_withProcessor() throws IOException { List<String> list = source.readLines( new LineProcessor<List<String>>() { List<String> list = Lists.newArrayList(); @Override public boolean processLine(String line) throws IOException { list.add(line);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
assertTrue(temp.delete()); } public void testReadLines_withLineProcessor() throws IOException { File temp = createTempFile(); LineProcessor<List<String>> collect = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override public boolean processLine(String line) { collector.add(line);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
} } public void testReadLines_withProcessor() throws IOException { List<String> list = source.readLines( new LineProcessor<List<String>>() { List<String> list = Lists.newArrayList(); @Override public boolean processLine(String line) throws IOException { list.add(line);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testReadLines_withLineProcessor() throws IOException { URL resource = getClass().getResource("testdata/alice_in_wonderland.txt"); LineProcessor<List<String>> collectAndLowercaseAndTrim = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override public boolean processLine(String line) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
throw closer.rethrow(e); } finally { closer.close(); } } /** * Reads lines of text from this source, processing each line as it is read using the given {@link * LineProcessor processor}. Stops when all lines have been processed or the processor returns * {@code false} and returns the result produced by the processor. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 25.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
assertTrue(temp.delete()); } public void testReadLines_withLineProcessor() throws IOException { File temp = createTempFile(); LineProcessor<List<String>> collect = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override public boolean processLine(String line) { collector.add(line);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0)