Lines Matching defs:line
22 * Package-protected abstract class that implements the line reading
24 * java.io.BufferedReader}: line feed, carriage return, or carriage
34 /** Holds partial line contents. */
35 private StringBuilder line = new StringBuilder();
36 /** Whether a line ending with a CR is pending processing. */
40 * Process additional characters from the stream. When a line separator
41 * is found the contents of the line and the line separator itself
53 // Last call to add ended with a CR; we can handle the line now.
63 line.append(cbuf, start, pos - start);
74 line.append(cbuf, start, pos - start);
80 line.append(cbuf, start, off + len - start);
83 /** Called when a line is complete. */
85 handleLine(line.toString(), sawReturn
88 line = new StringBuilder();
95 * in order to ensure that any unterminated line in the buffer is
101 if (sawReturn || line.length() > 0) {
107 * Called for each line found in the character data passed to
110 * @param line a line of text (possibly empty), without any line separators
111 * @param end the line separator; one of {@code "\r"}, {@code "\n"},
115 protected abstract void handleLine(String line, String end)