StringReader.java (13310:0034a6f1ead1) StringReader.java (15375:143d43ae2446)
1/*
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 128 unchanged lines hidden (view full) ---

137 * Tells whether this stream is ready to be read.
138 *
139 * @return True if the next read() is guaranteed not to block for input
140 *
141 * @exception IOException If the stream is closed
142 */
143 public boolean ready() throws IOException {
144 synchronized (lock) {
1/*
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 128 unchanged lines hidden (view full) ---

137 * Tells whether this stream is ready to be read.
138 *
139 * @return True if the next read() is guaranteed not to block for input
140 *
141 * @exception IOException If the stream is closed
142 */
143 public boolean ready() throws IOException {
144 synchronized (lock) {
145 ensureOpen();
146 return true;
145 ensureOpen();
146 return true;
147 }
148 }
149
150 /**
151 * Tells whether this stream supports the mark() operation, which it does.
152 */
153 public boolean markSupported() {
154 return true;

--- 51 unchanged lines hidden ---
147 }
148 }
149
150 /**
151 * Tells whether this stream supports the mark() operation, which it does.
152 */
153 public boolean markSupported() {
154 return true;

--- 51 unchanged lines hidden ---