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