标签:... div turn stream java static ati except 关闭
1.关闭所有流
import java.io.Closeable; import java.io.IOException; public class AllClose { public static boolean close(Closeable ...closeables){ for(Closeable stream:closeables) { try { stream.close(); } catch (IOException e) { // TODO Auto-generated catch block System.out.println(e.getMessage()); return false; } } return true; } }
标签:... div turn stream java static ati except 关闭
原文地址:http://www.cnblogs.com/ssjifm/p/7350953.html