(File file, byte[] data)
| 76 | } |
| 77 | |
| 78 | public static File write(File file, byte[] data) { |
| 79 | try { |
| 80 | FileOutputStream fos = new FileOutputStream(create(file)); |
| 81 | fos.write(data); |
| 82 | fos.flush(); |
| 83 | fos.close(); |
| 84 | return file; |
| 85 | } catch (IOException e) { |
| 86 | e.printStackTrace(); |
| 87 | return file; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | public static void move(File in, File out) { |
| 92 | if (in.renameTo(out)) return; |
no test coverage detected