Restores the input stream to its state before the call to #save.
()
| 93 | * Restores the input stream to its state before the call to {@link #save}. |
| 94 | */ |
| 95 | public void |
| 96 | restore() { |
| 97 | if (saved_pos < 0) { |
| 98 | throw new IllegalStateException("no previous state"); |
| 99 | } |
| 100 | pos = saved_pos; |
| 101 | saved_pos = -1; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Writes an unsigned 8 bit value to the stream. |