MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / writefile

Method writefile

src/main/java/core/packetproxy/common/Utils.java:231–237  ·  view source on GitHub ↗
(String filename, byte[] data)

Source from the content-addressed store, hash-verified

229 }
230
231 public static void writefile(String filename, byte[] data) throws Exception {
232 FileOutputStream fos = new FileOutputStream(filename);
233 BufferedOutputStream bos = new BufferedOutputStream(fos);
234 bos.write(data);
235 bos.flush();
236 bos.close();
237 }
238
239 public static byte[] gzip(byte[] src) throws Exception {
240 ByteArrayOutputStream out = new ByteArrayOutputStream();

Callers 3

onApprovedMethod · 0.95
onApprovedMethod · 0.95
outputToFileMethod · 0.95

Calls 2

writeMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected