Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testReadLines_withLineProcessor (0.31 sec)

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

        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
        LineProcessor<List<String>> collectAndLowercaseAndTrim =
            new LineProcessor<List<String>>() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
        LineProcessor<List<String>> collectAndLowercaseAndTrim =
            new LineProcessor<List<String>>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. 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 =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  4. 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 =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(
            ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, Charsets.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<>();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(
            ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, Charsets.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<>();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top