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

Method skip

output/java_guava/1.4.16/MultiReader.java:67–80  ·  view source on GitHub ↗
(long n)

Source from the content-addressed store, hash-verified

65 }
66
67 @Override
68 public long skip(long n) throws IOException {
69 Preconditions.checkArgument(n >= 0, "n is negative");
70 if (n > 0) {
71 while (current != null) {
72 long result = current.skip(n);
73 if (result > 0) {
74 return result;
75 }
76 advance();
77 }
78 }
79 return 0;
80 }
81
82 @Override
83 public boolean ready() throws IOException {

Callers

nothing calls this directly

Calls 2

checkArgumentMethod · 0.95
advanceMethod · 0.95

Tested by

no test coverage detected