if (ze == null) break;
if (ze.getName().equals(path)) return zis;
}
- return null;
+ throw new RuntimeException("could not find file within archive");
} else {
Tar.TarInputStream tis = new Tar.TarInputStream(new GZIPInputStream(rest));
while(true) {
if (te == null) break;
if (te.getName().equals(path)) return tis;
}
- return null;
+ throw new RuntimeException("could not find file within archive");
}
} else {
URL u = new URL(url);