131132133134135136137138139
* * @param file * @param datas */ public static void appendTo(File file, byte[] datas) { new FileCommandInvoker().command(new MakeFileCommand(file)) .command(new AppendToFileCommand(file, datas)) .invoke(); }
258259260261262263264265266267
* @param source * @param target */ public static void move(File source, File target) { new FileCommandInvoker().command(new MakeFileCommand(target)) .command(new CopyFileCommand(source, target)) .command(new DeleteFileCommand(source)) .invoke(); }