Debian Codegraph @

current/shared/LineParserS.java

raw symbols SCIP
1 package shared;
2
3 /**
4 * Interface for classes that parse delimited string lines.
5 *
6 * @author Brian Bushnell
7 * @date April 3, 2024
8 *
9 */
10 public interface LineParserS extends LineParser {
11
12 /**
13 * Designate the line of text to be parsed.
14 * @param line Line to parse.
15 * @return this
16 */
17 public LineParserS set(String line);
18
19 /**
20 * Designate the line of text to be parsed.
21 * @param line Line to parse.
22 * @param maxTerm Stop parsing after this term.
23 * @return this
24 */
25 public LineParserS set(String line, int maxTerm);
26
27 /**
28 * Clear all internal state.
29 * @return this
30 */
31 public LineParserS clear();
32
33 /**
34 * Reset state to the start of the current line.
35 * @return this
36 */
37 public LineParserS reset();
38
39 /**
40 * Parse a char from the designated field.
41 * @param term Field to parse.
42 * @param offset Position in the field to read.
43 * @return char value.
44 */
45 public char parseChar(int term, int offset);
46
47
48 }