(Reader reader)
| 169 | } |
| 170 | |
| 171 | private long countBySkipping(Reader reader) throws IOException { |
| 172 | long count = 0; |
| 173 | long read; |
| 174 | while ((read = reader.skip(Long.MAX_VALUE)) != 0) { |
| 175 | count += read; |
| 176 | } |
| 177 | return count; |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Appends the contents of this source to the given {@link Appendable} (such as a {@link Writer}). |