private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
private void checkNotClosed() throws IOException { if (isClosed()) { throw new IOException("BufferedReader is closed"); } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }
/** * Closes this reader. This implementation closes the buffered source reader * and releases the buffer. Nothing is done if this reader has already been * closed. * * @throws IOException * if an error occurs while closing this reader. */ @Override public void close() throws IOException { synchronized (lock) { if (!isClosed()) { in.close(); buf = null; } } }