Examples of PharEntry


Examples of org.eclipse.php.internal.core.phar.PharEntry

   *            The path representing the container
   * @return The element represented by this pathname (it may have already
   *         existed)
   */
  protected PharEntry createContainer(IPath pathname) {
    PharEntry existingEntry = (PharEntry) directoryEntryCache.get(pathname);
    if (existingEntry != null) {
      return existingEntry;
    }

    PharEntry parent;
    if (pathname.segmentCount() == 1) {
      parent = root;
    } else {
      parent = createContainer(pathname.removeLastSegments(1));
    }
    PharEntry newEntry = new PharEntry();
    newEntry.setName(pathname.toString());
    // newEntry.setFileType(TarEntry.DIRECTORY);
    directoryEntryCache.put(pathname, newEntry);
    List childList = new ArrayList();
    children.put(newEntry, childList);

View Full Code Here

Examples of org.eclipse.php.internal.core.phar.PharEntry

  /**
   * Creates a new tar file entry with the specified name.
   */
  protected void createFile(PharEntry entry) {
    IPath pathname = new Path(entry.getName());
    PharEntry parent;
    if (pathname.segmentCount() == 1) {
      parent = root;
    } else {
      parent = (PharEntry) directoryEntryCache.get(pathname
          .removeLastSegments(1));
View Full Code Here

Examples of org.eclipse.php.internal.core.phar.PharEntry

    children.put(root, new ArrayList());
    Iterator<PharEntry> entries = tarFile.getPharEntryMap().values()
        .iterator();
    while (entries.hasNext()) {
      PharEntry entry = (PharEntry) entries.next();
      IPath path = new Path(entry.getName()).addTrailingSeparator();

      if (entry.isDirectory()) {
        createContainer(path);
      } else {
        // Ensure the container structure for all levels above this is
        // initialized
        // Once we hit a higher-level container that's already added we
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.