MCPcopy Index your code
hub / github.com/google/brotli / run

Method run

java/org/brotli/integration/BundleChecker.java:59–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 @Override
60 public void run() {
61 String entryName = "";
62 ZipInputStream zis = new ZipInputStream(input);
63 try {
64 int entryIndex = 0;
65 ZipEntry entry;
66 int jobIndex = nextJob.getAndIncrement();
67 while ((entry = zis.getNextEntry()) != null) {
68 if (entry.isDirectory()) {
69 continue;
70 }
71 if (entryIndex++ != jobIndex) {
72 zis.closeEntry();
73 continue;
74 }
75 entryName = entry.getName();
76 long entryCrc = BundleHelper.getExpectedFingerprint(entryName);
77 try {
78 if (entryCrc != decompressAndCalculateCrc(zis) && !sanityCheck) {
79 throw new RuntimeException("CRC mismatch");
80 }
81 } catch (IOException iox) {
82 if (!sanityCheck) {
83 throw new RuntimeException("Decompression failed", iox);
84 }
85 }
86 zis.closeEntry();
87 entryName = "";
88 jobIndex = nextJob.getAndIncrement();
89 }
90 zis.close();
91 input.close();
92 } catch (Throwable ex) {
93 throw new RuntimeException(entryName, ex);
94 }
95 }
96
97 public static void main(String[] args) throws FileNotFoundException {
98 int argsOffset = 0;

Callers 1

mainMethod · 0.45

Calls 3

closeMethod · 0.45

Tested by

no test coverage detected