1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-11 09:50:29 +00:00
CC-Tweaked/src/main/java/dan200/computercraft/shared/util/IoUtil.java

27 lines
544 B
Java
Raw Normal View History

/*
* This file is part of ComputerCraft - http://www.computercraft.info
* Copyright Daniel Ratcliffe, 2011-2019. Do not distribute without permission.
* Send enquiries to dratcliffe@gmail.com
*/
package dan200.computercraft.shared.util;
import java.io.Closeable;
import java.io.IOException;
public final class IoUtil
{
private IoUtil() {}
public static void closeQuietly( Closeable closeable )
{
try
{
closeable.close();
}
catch( IOException ignored )
{
}
}
}