MCPcopy Create free account
hub / github.com/Giyn/LiveChat / saveFile

Method saveFile

src/pers/giyn/LiveChat/client/utils/Utils.java:462–470  ·  view source on GitHub ↗
(File file, byte[] data)

Source from the content-addressed store, hash-verified

460 }
461
462 public static void saveFile(File file, byte[] data) throws IOException {
463 if (!file.exists()) {
464 file.getParentFile().mkdirs();
465 file.createNewFile();
466 }
467 FileOutputStream outputStream = new FileOutputStream(file);
468 outputStream.write(data);
469 outputStream.close();
470 }
471 }
472
473 public static class Base64Utils {

Callers 1

processMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected