Goes forward one step in the navigation history, if possible. @return this navigation history, after going forward one step @throws IOException in case of error
()
| 199 | * @throws IOException in case of error |
| 200 | */ |
| 201 | public History forward() throws IOException { |
| 202 | if (index_ < entries_.size() - 1) { |
| 203 | index_++; |
| 204 | goToUrlAtCurrentIndex(); |
| 205 | } |
| 206 | return this; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Goes forward or backwards in the navigation history, according to whether the specified relative index |