src/share/classes/java/util/Scanner.java
Print this page
*** 341,351 ****
*
* <p> Whitespace is not significant in the above regular expressions.
*
* @since 1.5
*/
! public final class Scanner implements Iterator<String> {
// Internal buffer used to hold input
private CharBuffer buf;
// Size of internal character buffer
--- 341,351 ----
*
* <p> Whitespace is not significant in the above regular expressions.
*
* @since 1.5
*/
! public final class Scanner implements Iterator<String>, Closeable {
// Internal buffer used to hold input
private CharBuffer buf;
// Size of internal character buffer