+
+ // BH 2018 allow for bytes already attached to File object
+ final String file = ofile.toString();
+ byte[] bytes = /** @j2sNative ofile._bytes ||*/null;
+ if (bytes != null) {
+
+ return new jarInputStreamProvider()
+ {
+
+ @Override
+ public JarInputStream getJarInputStream() throws IOException
+ {
+ return new JarInputStream(new ByteArrayInputStream(bytes));
+ }
+
+ @Override
+ public String getFilename()
+ {
+ return file;
+ }
+ };
+
+ }