All Downloads are FREE. Search and download functionalities are using the official Maven repository.

holmos.webtest.basetools.HolmosIOTool Maven / Gradle / Ivy

There is a newer version: 1.0.2u10
Show newest version
package holmos.webtest.basetools;

import java.io.InputStream;

/**Holmos框架操作IO的工具类
 * @author 吴银龙([email protected])
 * */
public class HolmosIOTool {
	/**关闭stream,并且不抛出异常
	 * @param stream 待关闭的输入流*/
	public static void closeStreamIgnoreExpection(InputStream stream) {
		try{
			if(stream!=null){
				stream.close();
			}
		}catch (Exception e) {
			// do nothing here
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy