Here you can find the source of closeWithRuntimeException(Closeable c)
public static void closeWithRuntimeException(Closeable c)
//package com.java2s; import java.io.Closeable; import java.io.IOException; public class Main { public static void closeWithRuntimeException(Closeable c) { try {//from w ww . j a v a 2 s. co m c.close(); } catch (IOException e) { throw new RuntimeException(e); } } }