日期:2014-05-16 浏览次数:20587 次
IOUtil
?
?
import java.io.IOException; import java.io.Reader; import org.apache.log4j.Logger; public final class IOUtil { private static final Logger LOG = Logger.getLogger(IOUtil.class); private IOUtil(){} /** * @Title: closeReader * @Description: 关闭字符流 * @param reader * @author * @date 2011-12-29 */ public static void closeReader(Reader reader) { if (null != reader){ try { reader.close(); } catch (IOException e) { LOG.error("close Reader faile!", e); } } } }?
?