UncheckedIOException
264265266267268269270271
public static byte[] readFileToByteArray(File file) { try { return FileUtils.readFileToByteArray(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
272273274275276277278279
public static List readLines(File file, String encoding) { try { return FileUtils.readLines(file, encoding); } catch (IOException e) { throw new UncheckedIOException(e); } }
280281282283284285286287
public static List readLines(File file) { try { return FileUtils.readLines(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
288289290291292293294295
public static LineIterator lineIterator(File file, String encoding) { try { return FileUtils.lineIterator(file, encoding); } catch (IOException e) { throw new UncheckedIOException(e); } }
296297298299300301302303
public static LineIterator lineIterator(File file) { try { return FileUtils.lineIterator(file); } catch (IOException e) { throw new UncheckedIOException(e); } }
304305306307308309310311
public static void writeStringToFile(File file, String data, String encoding) { try { FileUtils.writeStringToFile(file, data, encoding); } catch (IOException e) { throw new UncheckedIOException(e); } }
312313314315316317318319
public static void writeStringToFile(File file, String data) { try { FileUtils.writeStringToFile(file, data); } catch (IOException e) { throw new UncheckedIOException(e); } }
320321322323324325326327
public static void writeByteArrayToFile(File file, byte[] data) { try { FileUtils.writeByteArrayToFile(file, data); } catch (IOException e) { throw new UncheckedIOException(e); } }
4546474849505152
IOUtils.copyLarge(inputStream, outstr); } finally { inputStream.close(); } } catch (IOException e) { throw new UncheckedIOException(e); } }
328329330331332333334335
public static void writeLines(File file, String encoding, Collection lines) { try { FileUtils.writeLines(file, encoding, lines); } catch (IOException e) { throw new UncheckedIOException(e); } }