/**
* Close an {@link ObjectOutput} unconditionally. Equivalent to
* calling <code>o.close()</code> when <code>o</code> is nonnull.
* {@link IOException}s are swallowed, as there is generally
* nothing that can be done about exceptions on closing.
*
* @param o a (possibly <code>null</code>) <code>ObjectOutput</code>
*/
public static void closeQuietly(ObjectOutput o) {
if (o == null) return;
try {
o.close();
}
catch (IOException e) {
// ignore
}
}
IOUtils.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:VASSAL-src
作者:
评论列表
文章目录