UncheckedIOException
75767778798081828384
return new Stoppable() { public void stop() { try { closeable.close(); } catch (IOException e) { throw new UncheckedIOException(e); } } }; }
606162636465666768
} } finally { instr.close(); } } catch (IOException e) { throw new UncheckedIOException(e); } return messageDigest.digest(); }
8384858687888990
public static boolean contentEquals(File file1, File file2) { try { return FileUtils.contentEquals(file1, file2); } catch (IOException e) { throw new UncheckedIOException(e); } }
65666768697071727374
{ urls[i] = classpathIterator.next().toURI().toURL(); } catch (MalformedURLException e) { throw new UncheckedIOException(e); } } return new URLClassLoader(urls, classLoaderFactory.getRootClassLoader()); }
122123124125126127128129130131
List<URL> urls = new ArrayList<URL>(); for (File file : files) { try { urls.add(file.toURI().toURL()); } catch (MalformedURLException e) { throw new UncheckedIOException(e); } } return urls; }
136137138139140141142143
public static URL[] toURLs(File[] files) { try { return FileUtils.toURLs(files); } catch (IOException e) { throw new UncheckedIOException(e); } }
144145146147148149150151
public static void copyFileToDirectory(File srcFile, File destDir) { try { FileUtils.copyFileToDirectory(srcFile, destDir); } catch (IOException e) { throw new UncheckedIOException(e); } }
152153154155156157158159
public static void copyFileToDirectory(File srcFile, File destDir, boolean preserveFileDate) { try { FileUtils.copyFileToDirectory(srcFile, destDir, preserveFileDate); } catch (IOException e) { throw new UncheckedIOException(e); } }
160161162163164165166167
public static void copyFile(File srcFile, File destFile) { try { FileUtils.copyFile(srcFile, destFile); } catch (IOException e) { throw new UncheckedIOException(e); } }
168169170171172173174175
public static void copyFile(File srcFile, File destFile, boolean preserveFileDate) { try { FileUtils.copyFile(srcFile, destFile, preserveFileDate); } catch (IOException e) { throw new UncheckedIOException(e); } }