/** {@inheritDoc} */ public File getFile(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); final JarEntry zipEntry = zipNode.entry; try { return new File(new URI("jar", archiveFile.toURI().toString() + "!/", zipEntry.getName())); } catch (URISyntaxException e) { throw new IOException(e); } }
/** {@inheritDoc} */ public File getFile(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); final JarEntry zipEntry = zipNode.entry; try { return new File(new URI("jar", archiveFile.toURI().toString() + "!/", zipEntry.getName())); } catch (URISyntaxException e) { throw new IOException(e); } }
/** {@inheritDoc} */ public File getFile(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); final JarEntry zipEntry = zipNode.entry; try { return new File(new URI("jar", archiveFile.toURI().toString() + "!/", zipEntry.getName())); } catch (URISyntaxException e) { throw new IOException(e); } }
/** {@inheritDoc} */ public InputStream openInputStream(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); if (rootNode == zipNode) { return new FileInputStream(archiveFile); } final JarEntry entry = zipNode.entry; if (entry == null) { throw new IOException("Not a file: \"" + target.getPathName() + "\""); } return zipFile.getInputStream(entry); }
/** {@inheritDoc} */ public InputStream openInputStream(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); if (rootNode == zipNode) { return new FileInputStream(archiveFile); } final JarEntry entry = zipNode.entry; if (entry == null) { throw new IOException("Not a file: \"" + target.getPathName() + "\""); } return zipFile.getInputStream(entry); }
/** {@inheritDoc} */ public InputStream openInputStream(VirtualFile mountPoint, VirtualFile target) throws IOException { final ZipNode zipNode = getExistingZipNode(mountPoint, target); if (rootNode == zipNode) { return new FileInputStream(archiveFile); } final JarEntry entry = zipNode.entry; if (entry == null) { throw new IOException("Not a file: \"" + target.getPathName() + "\""); } return zipFile.getInputStream(entry); }