blob: e0322fb4a5f7023c25211597d107f73d8a94172d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package org.zwobble.mammoth.internal.archives;
import java.io.IOException;
import java.io.InputStream;
public class Archives {
public static InputStream getInputStream(Archive file, String name) throws IOException {
return file.tryGetInputStream(name)
.orElseThrow(() -> new IOException("Missing entry in file: " + name));
}
}
|