MCPcopy Create free account
hub / github.com/antlr/codebuff / advance

Method advance

corpus/java/training/guava/io/MultiReader.java:45–50  ·  view source on GitHub ↗

Closes the current reader and opens the next one, if any.

()

Source from the content-addressed store, hash-verified

43 * Closes the current reader and opens the next one, if any.
44 */
45 private void advance() throws IOException {
46 close();
47 if (it.hasNext()) {
48 current = it.next().openStream();
49 }
50 }
51
52 @Override
53 public int read(@Nullable char cbuf[], int off, int len) throws IOException {

Callers 3

MultiReaderMethod · 0.95
readMethod · 0.95
skipMethod · 0.95

Calls 4

closeMethod · 0.95
nextMethod · 0.65
hasNextMethod · 0.45
openStreamMethod · 0.45

Tested by

no test coverage detected