Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LineBuffer (0.31 sec)

  1. android/guava/src/com/google/common/io/LineBuffer.java

     * call {@link #finish} at the end of stream.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class LineBuffer {
      /** Holds partial line contents. */
      private StringBuilder line = new StringBuilder();
      /** Whether a line ending with a CR is pending processing. */
      private boolean sawReturn;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        }
      }
    
      private static List<String> bufferHelper(String input, int chunk) throws IOException {
        final List<String> lines = Lists.newArrayList();
        LineBuffer lineBuf =
            new LineBuffer() {
              @Override
              protected void handleLine(String line, String end) {
                lines.add(line + end);
              }
            };
        char[] chars = input.toCharArray();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/LineBufferTest.java

        }
      }
    
      private static List<String> bufferHelper(String input, int chunk) throws IOException {
        final List<String> lines = Lists.newArrayList();
        LineBuffer lineBuf =
            new LineBuffer() {
              @Override
              protected void handleLine(String line, String end) {
                lines.add(line + end);
              }
            };
        char[] chars = input.toCharArray();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LineReader.java

      private final CharBuffer cbuf = createBuffer();
      private final char[] buf = cbuf.array();
    
      private final Queue<String> lines = new ArrayDeque<>();
      private final LineBuffer lineBuf =
          new LineBuffer() {
            @Override
            protected void handleLine(String line, String end) {
              lines.add(line);
            }
          };
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top