Resets the current position of the input stream to the specified index, and clears the active region. @param index The position to continue parsing at. @throws IllegalArgumentException The index is not within the input.
(int index)
| 116 | * @throws IllegalArgumentException The index is not within the input. |
| 117 | */ |
| 118 | public void |
| 119 | jump(int index) { |
| 120 | if (index >= byteBuffer.capacity()) { |
| 121 | throw new IllegalArgumentException("cannot jump past " + |
| 122 | "end of input"); |
| 123 | } |
| 124 | byteBuffer.position(index); |
| 125 | byteBuffer.limit(byteBuffer.capacity()); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Saves the current state of the input stream. Both the current position and |
no outgoing calls
no test coverage detected