(String source, File outputDir)
| 95 | } |
| 96 | |
| 97 | public static void unzip(String source, File outputDir) throws IOException { |
| 98 | byte[] bytes = Base64.getMimeDecoder().decode(source); |
| 99 | |
| 100 | try (ByteArrayInputStream bis = new ByteArrayInputStream(bytes)) { |
| 101 | unzip(bis, outputDir); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | public static File unzipToTempDir(InputStream source, String prefix, String suffix) |
| 106 | throws IOException { |