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

Method skip

corpus/java/training/guava/io/MultiReader.java:65–78  ·  view source on GitHub ↗
(long n)

Source from the content-addressed store, hash-verified

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

Callers 3

skipFullyMethod · 0.45
skipBytesMethod · 0.45
countBySkippingMethod · 0.45

Calls 2

checkArgumentMethod · 0.95
advanceMethod · 0.95

Tested by

no test coverage detected