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

Method gzip

src/main/java/core/packetproxy/http/Http.java:632–638  ·  view source on GitHub ↗
(byte[] input_data)

Source from the content-addressed store, hash-verified

630 }
631
632 private static byte[] gzip(byte[] input_data) throws Exception {
633 ByteArrayOutputStream out = new ByteArrayOutputStream();
634 GZIPOutputStream gout = new GZIPOutputStream(out);
635 gout.write(input_data);
636 gout.close();
637 return out.toByteArray();
638 }
639
640 private static byte[] getChankedHttpBodyFussy(byte[] input_data) throws Exception {
641 // TODO 改行コードの対応

Callers 1

encodeBodyByGzipMethod · 0.95

Calls 3

writeMethod · 0.65
closeMethod · 0.45
toByteArrayMethod · 0.45

Tested by

no test coverage detected