Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for processFile (0.14 sec)

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

        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);
                    return true;
                  }
    
                  @Override
                  public List<String> getResult() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/Resources.java

        return readLines(
            url,
            charset,
            new LineProcessor<List<String>>() {
              final List<String> result = Lists.newArrayList();
    
              @Override
              public boolean processLine(String line) {
                result.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return result;
              }
            });
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

        LineProcessor<List<String>> collect =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
    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/src/com/google/common/io/CharStreams.java

        checkNotNull(readable);
        checkNotNull(processor);
    
        LineReader lineReader = new LineReader(readable);
        String line;
        while ((line = lineReader.readLine()) != null) {
          if (!processor.processLine(line)) {
            break;
          }
        }
        return processor.getResult();
      }
    
      /**
       * Reads and discards data from the given {@code Readable} until the end of the stream is reached.
    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. guava-tests/test/com/google/common/io/ResourcesTest.java

        LineProcessor<List<String>> collectAndLowercaseAndTrim =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(whitespace().trimFrom(line));
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FilesTest.java

        LineProcessor<List<String>> collect =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/CharSource.java

        public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException {
          Iterator<String> lines = linesIterator();
          while (lines.hasNext()) {
            if (!processor.processLine(lines.next())) {
              break;
            }
          }
          return processor.getResult();
        }
    
        @Override
        public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
                    return true;
                  }
    
                  @Override
                  public List<String> getResult() {
                    return result;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Files.java

            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
                    return true;
                  }
    
                  @Override
                  public List<String> getResult() {
                    return result;
    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