(long n)
| 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 { |
no test coverage detected