public void close() throws IOException {
		if (thread.isAlive()) {
			thread.closed = true;
			thread.interrupt();
		}

		if (stream != null) {
			stream.close();
		}
	}
public void close ( ) throws IOException { if ( thread . isAlive ( ) ) { thread . closed = true ; thread . interrupt ( ) ; } if ( stream != null ) { stream . close ( ) ; } }
Closes the underlying input stream.