/** * {@inheritDoc} */ public CodeSigner[] getCodeSigners(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return null; } JarEntry jarEntry = zipNode.entry; return jarEntry.getCodeSigners(); }
/** {@inheritDoc} */ public long getSize(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; if (zipNode == rootNode) { return archiveFile.length(); } return entry == null ? 0L : entry.getSize(); }
/** {@inheritDoc} */ public long getLastModified(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; return entry == null ? zipTime : entry.getTime(); }
/** {@inheritDoc} */ public List<String> getDirectoryEntries(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return Collections.emptyList(); } final Map<String, ZipNode> children = zipNode.children; if (children == null) { return Collections.emptyList(); } final Collection<ZipNode> values = children.values(); final List<String> names = new ArrayList<String>(values.size()); for (ZipNode node : values) { names.add(node.name); } return names; }
/** {@inheritDoc} */ public long getLastModified(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; return entry == null ? zipTime : entry.getTime(); }
/** {@inheritDoc} */ public List<String> getDirectoryEntries(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return Collections.emptyList(); } final Map<String, ZipNode> children = zipNode.children; if (children == null) { return Collections.emptyList(); } final Collection<ZipNode> values = children.values(); final List<String> names = new ArrayList<String>(values.size()); for (ZipNode node : values) { names.add(node.name); } return names; }
/** {@inheritDoc} */ public List<String> getDirectoryEntries(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return Collections.emptyList(); } final Map<String, ZipNode> children = zipNode.children; if (children == null) { return Collections.emptyList(); } final Collection<ZipNode> values = children.values(); final List<String> names = new ArrayList<String>(values.size()); for (ZipNode node : values) { names.add(node.name); } return names; }
/** * {@inheritDoc} */ public CodeSigner[] getCodeSigners(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return null; } JarEntry jarEntry = zipNode.entry; return jarEntry.getCodeSigners(); }
/** {@inheritDoc} */ public long getSize(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; if (zipNode == rootNode) { return archiveFile.length(); } return entry == null ? 0L : entry.getSize(); }
/** {@inheritDoc} */ public long getLastModified(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; return entry == null ? zipTime : entry.getTime(); }
/** * {@inheritDoc} */ public CodeSigner[] getCodeSigners(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return null; } JarEntry jarEntry = zipNode.entry; return jarEntry.getCodeSigners(); }
/** {@inheritDoc} */ public long getSize(VirtualFile mountPoint, VirtualFile target) { final ZipNode zipNode = getZipNode(mountPoint, target); if (zipNode == null) { return 0L; } final JarEntry entry = zipNode.entry; if (zipNode == rootNode) { return archiveFile.length(); } return entry == null ? 0L : entry.getSize(); }