/* * Closes this stream. The source stream is closed and any resources * associated with it are released. * * @throws IOException * if an error occurs while closing this stream. */ public override void close() //throws IOException { buf = null; InputStream localIn = inJ; inJ = null; if (localIn != null) { localIn.close(); } }
/** * Closes this reader. This implementation closes the source InputStream and * releases all local storage. * * @throws IOException * if an error occurs attempting to close this reader. */ public override void close() // throws IOException { { lock (this.lockJ) { decoder = null; if (inJ != null) { inJ.close(); inJ = null; } } }
/** * Sets up the next InputStream or leaves it alone if there are none left. * * @throws IOException */ private void nextStream() { // throws IOException { if (inJ != null) { inJ.close(); } if (e.hasMoreElements()) { inJ = e.nextElement(); if (inJ == null) { throw new java.lang.NullPointerException(); } } else { inJ = null; } }
public override void close() { inJ.close(); }