Package org.codehaus.plexus.archiver.tar
Class TarResource
- java.lang.Object
-
- org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
- org.codehaus.plexus.archiver.tar.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
-
-
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()
InputStream
getContents()
URL
getURL()
void
setAttributes(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
-
-
-
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 interfaceorg.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
-
setAttributes
public void setAttributes(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
-
getURL
public URL getURL() throws IOException
- Specified by:
getURL
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
IOException
-
getContents
@Nonnull public InputStream getContents() throws IOException
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.functions.ContentSupplier
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
IOException
-
-