Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadLines_withProcessor (0.27 sec)

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

        Optional<Long> lengthIfKnown = source.lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          assertEquals(expected.length(), (long) lengthIfKnown.get());
        }
      }
    
      public void testReadLines_withProcessor() throws IOException {
        List<String> list =
            source.readLines(
                new LineProcessor<List<String>>() {
                  List<String> list = Lists.newArrayList();
    
                  @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_withProcessor() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        List<String> list =
            lines.readLines(
                new LineProcessor<List<String>>() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top