(String gz)
| 70 | } |
| 71 | |
| 72 | public static String decompress(String gz) throws IOException { |
| 73 | ByteArrayInputStream bin = new ByteArrayInputStream(Base64.getUrlDecoder().decode(gz)); |
| 74 | GZIPInputStream gzi = new GZIPInputStream(bin); |
| 75 | ByteArrayOutputStream boas = new ByteArrayOutputStream(); |
| 76 | IO.fullTransfer(gzi, boas, 256); |
| 77 | gzi.close(); |
| 78 | |
| 79 | return boas.toString(StandardCharsets.UTF_8); |
| 80 | } |
| 81 | |
| 82 | public static byte[] sdecompress(String compressed) throws IOException { |
| 83 | ByteArrayInputStream bin = new ByteArrayInputStream(Base64.getUrlDecoder().decode(compressed)); |
nothing calls this directly
no test coverage detected