(byte[] src)
| 237 | } |
| 238 | |
| 239 | public static byte[] gzip(byte[] src) throws Exception { |
| 240 | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| 241 | GZIPOutputStream gzos = new GZIPOutputStream(out); |
| 242 | gzos.write(src); |
| 243 | gzos.flush(); |
| 244 | gzos.finish(); |
| 245 | return out.toByteArray(); |
| 246 | } |
| 247 | |
| 248 | public static byte[] ungzip(byte[] src) throws Exception { |
| 249 | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
nothing calls this directly
no test coverage detected