UncheckedIOException
93949596979899100101102
} StringWriter writer = new StringWriter(); template.make(properties).writeTo(writer); return new StringReader(writer.toString()); } catch (IOException e) { throw new UncheckedIOException(e); } } }); }
3536373839404142
public static FileInputStream openInputStream(File file) { try { return FileUtils.openInputStream(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
4344454647484950
public static FileOutputStream openOutputStream(File file) { try { return FileUtils.openOutputStream(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
5556575859606162
public static void touch(File file) { try { FileUtils.touch(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
6162636465666768697071
public void endVisit() { try { tarOutStr.close(); } catch (IOException e) { throw new UncheckedIOException(e); } finally { tarOutStr = null; spec = null; } }
4445464748495051525354
public void endVisit() { try { zipOutStr.close(); } catch (IOException e) { throw new UncheckedIOException(e); } finally { spec = null; zipOutStr = null; } }
164165166167168169170171
return loadProperties(inputStream); } finally { inputStream.close(); } } catch (IOException e) { throw new UncheckedIOException(e); } }
172173174175176177178179
public static Properties loadProperties(URL url) { try { return loadProperties(url.openStream()); } catch (IOException e) { throw new UncheckedIOException(e); } }
182183184185186187188189190
Properties properties = new Properties(); try { properties.load(inputStream); inputStream.close(); } catch (IOException e) { throw new UncheckedIOException(e); } return properties; }
196197198199200201202203
properties.store(propertiesFileOutputStream, null); } finally { propertiesFileOutputStream.close(); } } catch (IOException e) { throw new UncheckedIOException(e); } }