MCPcopy Index your code
hub / github.com/antlr/codebuff / readLines

Method readLines

output/java_guava/1.4.16/CharStreams.java:128–136  ·  view source on GitHub ↗

Reads all of the lines from a Readable object. The lines do not include line-termination characters, but do include other leading and trailing whitespace. Does not close the Readable. If reading files or resources you should use the Files#readLines and {@link Resources#re

(Readable r)

Source from the content-addressed store, hash-verified

126
127
128 public static List<String> readLines(Readable r) throws IOException {
129 List<String> result = new ArrayList<String>();
130 LineReader lineReader = new LineReader(r);
131 String line;
132 while ((line = lineReader.readLine()) != null) {
133 result.add(line);
134 }
135 return result;
136 }
137
138 /**
139 * Streams lines from a {@link Readable} object, stopping when the processor returns {@code false}

Callers 1

readLinesMethod · 0.95

Calls 5

readLineMethod · 0.95
addMethod · 0.65
processLineMethod · 0.65
getResultMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected