MCPcopy Create free account
hub / github.com/google/guava / skip

Method skip

android/guava/src/com/google/common/io/MultiReader.java:66–79  ·  view source on GitHub ↗
(long n)

Source from the content-addressed store, hash-verified

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