4142434445464748495051
ByteArrayOutputStream out = null; try { out = new ByteArrayOutputStream(); new WriteFileToCommand(file, out, true).execute(); return out.toByteArray(); } catch (Exception e) { throw Lang.uncheck(e); } finally { IOs.freeQuietly(out);
107108109110111112113
* @param file * @param out * @param close */ public static void writeTo(File file, OutputStream out, boolean close) { new WriteFileToCommand(file, out, close).execute(); }