Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for forEachLine (0.06 sec)

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

      }
    
      public void testForEachLine() throws IOException {
        source = new TestCharSource(LINES);
    
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        source.forEachLine(builder::add);
    
        assertEquals(SPLIT_LINES, builder.build());
        assertTrue(source.wasStreamOpened());
        assertTrue(source.wasStreamClosed());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testForEachLine() throws IOException {
        source = new TestCharSource(LINES);
    
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        source.forEachLine(builder::add);
    
        assertEquals(SPLIT_LINES, builder.build());
        assertTrue(source.wasStreamOpened());
        assertTrue(source.wasStreamClosed());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharSource.java

       */
      /*
       * We have to rely on users not to call this without library desugaring, as NewApi won't flag
       * Consumer creation.
       */
      @IgnoreJRERequirement
      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharSource.java

       *     throws an {@code UncheckedIOException}
       * @since 22.0 (but only since 33.4.0 in the Android flavor)
       */
      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
Back to top