Class AbstractZipUnArchiver.ZipEntryFileInfo

java.lang.Object
org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.ZipEntryFileInfo
All Implemented Interfaces:
org.codehaus.plexus.components.io.fileselectors.FileInfo, org.codehaus.plexus.components.io.functions.ContentSupplier, org.codehaus.plexus.components.io.functions.NameSupplier, org.codehaus.plexus.components.io.functions.SizeSupplier, org.codehaus.plexus.components.io.resources.PlexusIoResource
Enclosing class:
AbstractZipUnArchiver

private static class AbstractZipUnArchiver.ZipEntryFileInfo extends Object implements org.codehaus.plexus.components.io.resources.PlexusIoResource
  • Field Details

    • zipFile

      private final org.apache.commons.compress.archivers.zip.ZipFile zipFile
    • zipEntry

      private final org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry
  • Constructor Details

    • ZipEntryFileInfo

      ZipEntryFileInfo(org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
      Specified by:
      getName in interface org.codehaus.plexus.components.io.functions.NameSupplier
    • isDirectory

      public boolean isDirectory()
      Specified by:
      isDirectory in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
      Specified by:
      isDirectory in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
    • isFile

      public boolean isFile()
      Specified by:
      isFile in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
      Specified by:
      isFile in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
    • isSymbolicLink

      public boolean isSymbolicLink()
      Specified by:
      isSymbolicLink in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
    • getContents

      @Nonnull public InputStream getContents() throws IOException
      Specified by:
      getContents in interface org.codehaus.plexus.components.io.functions.ContentSupplier
      Specified by:
      getContents in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
      Specified by:
      getContents in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
      Throws:
      IOException
    • getLastModified

      public long getLastModified()
      Specified by:
      getLastModified in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
      Specified by:
      getSize in interface org.codehaus.plexus.components.io.functions.SizeSupplier
    • getURL

      public URL getURL() throws IOException
      Specified by:
      getURL in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
      Throws:
      IOException
    • isExisting

      public boolean isExisting()
      Specified by:
      isExisting in interface org.codehaus.plexus.components.io.resources.PlexusIoResource