Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for LineProcessor (0.06 sec)

  1. 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>>() {
                  final List<String> list = new ArrayList<>();
    
                  @Override
                  public boolean processLine(String line) throws IOException {
                    list.add(line);
    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/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 = new ArrayList<>();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. 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 = new ArrayList<>();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top