输出流可以重复关闭而不会出错

以下代码中,如果第一次out.close()不报异常,则第二次也不会报

	OutputStream out= new FileOutputStream(
		"c:/temp/result.xls");
		
		out.close();
		out.close();

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.