Restores the previously set active region. This differs from setActive() in that restoreActive() takes an absolute position, and setActive takes an offset from the current location. @param pos The end of the active region.
(int pos)
| 101 | * @param pos The end of the active region. |
| 102 | */ |
| 103 | public void |
| 104 | restoreActive(int pos) { |
| 105 | if (pos > byteBuffer.capacity()) { |
| 106 | throw new IllegalArgumentException("cannot set active " + |
| 107 | "region past end of input"); |
| 108 | } |
| 109 | byteBuffer.limit(byteBuffer.position()); |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Resets the current position of the input stream to the specified index, |