Class TarResource

  • 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.ResourceAttributeSupplier, org.codehaus.plexus.components.io.functions.SizeSupplier, org.codehaus.plexus.components.io.resources.PlexusIoResource
    Direct Known Subclasses:
    TarSymlinkResource

    public class TarResource
    extends org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
    implements org.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
    • Field Summary

      • Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource

        UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      TarResource​(TarFile tarFile, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getAttributes()  
      java.io.InputStream getContents()  
      java.net.URL getURL()  
      void setAttributes​(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)  
      • Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource

        getLastModified, getName, getSize, isDirectory, isExisting, isFile, isSymbolicLink
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TarResource

        public TarResource​(TarFile tarFile,
                           org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
    • Method Detail

      • getAttributes

        public org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getAttributes()
        Specified by:
        getAttributes in interface org.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
      • setAttributes

        public void setAttributes​(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
      • getURL

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

        @Nonnull
        public java.io.InputStream getContents()
                                        throws java.io.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:
        java.io.IOException