(long n)
| 65 | } |
| 66 | |
| 67 | @Override |
| 68 | public long skip(long n) throws IOException { |
| 69 | Preconditions.checkArgument(n >= 0, "n is negative"); |
| 70 | if (n > 0) { |
| 71 | while (current != null) { |
| 72 | long result = current.skip(n); |
| 73 | if (result > 0) { |
| 74 | return result; |
| 75 | } |
| 76 | advance(); |
| 77 | } |
| 78 | } |
| 79 | return 0; |
| 80 | } |
| 81 | |
| 82 | @Override |
| 83 | public boolean ready() throws IOException { |
nothing calls this directly
no test coverage detected