Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for LineProcessor (0.08 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testReadLines_withProcessor() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        List<String> list =
            lines.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: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharStreams.java

       * @since 14.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public static <T extends @Nullable Object> T readLines(
          Readable readable, LineProcessor<T> processor) throws IOException {
        checkNotNull(readable);
        checkNotNull(processor);
    
        LineReader lineReader = new LineReader(readable);
        String line;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

        // an immutable list, which would change the behavior of this method
        return asCharSource(file, charset)
            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

        // an immutable list, which would change the behavior of this method
        return asCharSource(file, charset)
            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top