@ Nullable public static InputStream findInputStreamForResource ( @ Nonnull final ZipFile zipFile , @ Nonnull final String resourcePath ) throws IOException { final ZipEntry entry = zipFile . getEntry ( resourcePath ) ; InputStream result = null ; if ( entry != null && ! entry . isDirectory ( ) ) { result = zipFile . getInputStream ( entry ) ; } return result ; }
Get input stream for resource in zip file .