Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testReadLines_withLineProcessor (0.18 sec)

  1. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
        assertEquals(ImmutableList.of("a", "b", "c"), lines);
      }
    
      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 =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharStreamsTest.java

      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
        assertEquals(ImmutableList.of("a", "b", "c"), lines);
      }
    
      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 =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, UTF_8));
    
        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<>();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, UTF_8));
    
        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<>();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top