Class ArchiveEntry


  • public class ArchiveEntry
    extends Object
    • Method Detail

      • getName

        public String getName()
        Returns:
        the filename of this entry in the archive.
      • getFile

        @Deprecated
        public File getFile()
        Deprecated.
        As of 1.0-alpha-10, file entries are no longer backed by files, but by instances of PlexusIoResource. Consequently, you should use getInputStream()-
        Returns:
        The original file that will be stored in the archive.
      • getType

        public int getType()
        Returns:
        FILE or DIRECTORY
      • getMode

        public int getMode()
        Returns:
        octal user/group/other unix like permissions.
      • shouldAddSynchronously

        public boolean shouldAddSynchronously()
        Indicates if this entry should be added to the archive synchronously before adding the next entry and/or accessing the next entry of ResourceIterator.
        Returns:
        true if this entry should be added synchronously
      • createFileEntry

        public static ArchiveEntry createFileEntry​(String target,
                                                   org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
                                                   int permissions,
                                                   org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection collection,
                                                   int defaultDirectoryPermissions)
                                            throws ArchiverException
        Throws:
        ArchiverException
      • createSymlinkEntry

        public static ArchiveEntry createSymlinkEntry​(String symlinkName,
                                                      int permissions,
                                                      String symlinkDestination,
                                                      int defaultDirectoryPermissions)
      • getResourceAttributes

        public org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getResourceAttributes()
      • setResourceAttributes

        public void setResourceAttributes​(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
      • getResource

        @Nonnull
        public org.codehaus.plexus.components.io.resources.PlexusIoResource getResource()
      • getDefaultDirMode

        public int getDefaultDirMode()