/* * Closes this reader. This implementation closes the filtered reader. * * @throws IOException * if an error occurs while closing this reader. */ public override void close() //throws IOException { lock (lockJ) { inJ.close(); } }
/* * 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. */ public override void close() //throws IOException { lock (lockJ) { if (!isClosed()) { inJ.close(); buf = null; } } }