blob: 519520a5a2d73dbdaad657b02d7c037343c8ec6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package org.zwobble.mammoth.internal.docx;
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));
}
}
|