MCPcopy
hub / github.com/google/guava / countBySkipping

Method countBySkipping

guava/src/com/google/common/io/CharSource.java:230–237  ·  view source on GitHub ↗
(Reader reader)

Source from the content-addressed store, hash-verified

228 }
229
230 private static long countBySkipping(Reader reader) throws IOException {
231 long count = 0;
232 long read;
233 while ((read = reader.skip(Long.MAX_VALUE)) != 0) {
234 count += read;
235 }
236 return count;
237 }
238
239 /**
240 * Appends the contents of this source to the given {@link Appendable} (such as a {@link Writer}).

Callers 1

lengthMethod · 0.95

Calls 1

skipMethod · 0.45

Tested by

no test coverage detected