MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / unzip

Method unzip

java/src/org/openqa/selenium/io/Zip.java:97–103  ·  view source on GitHub ↗
(String source, File outputDir)

Source from the content-addressed store, hash-verified

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 {

Callers 8

canDownloadAFileMethod · 0.95
testCanZipASingleFileMethod · 0.95
testCanZipADirectoryMethod · 0.95
downloadFileMethod · 0.95
uploadFileMethod · 0.95
unzipToTempDirMethod · 0.95
zip_test.jsFile · 0.80

Calls 7

createDirMethod · 0.95
unzipFileMethod · 0.95
setLastModifiedMethod · 0.95
getLastModifiedTimeMethod · 0.80
decodeMethod · 0.65
getNameMethod · 0.65
isDirectoryMethod · 0.65

Tested by 4

canDownloadAFileMethod · 0.76
testCanZipASingleFileMethod · 0.76
testCanZipADirectoryMethod · 0.76