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
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributesattributesprivate org.apache.commons.compress.archivers.tar.TarArchiveEntryentryprivate TarFiletarFile
-
Constructor Summary
Constructors Constructor Description TarResource(TarFile tarFile, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributesgetAttributes()java.io.InputStreamgetContents()private static longgetLastModifiedTime(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)java.net.URLgetURL()voidsetAttributes(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
-
-
-
Field Detail
-
tarFile
private final TarFile tarFile
-
entry
private final org.apache.commons.compress.archivers.tar.TarArchiveEntry entry
-
attributes
private 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
-
getLastModifiedTime
private static long getLastModifiedTime(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
-
getAttributes
public org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getAttributes()
- Specified by:
getAttributesin interfaceorg.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:
getURLin interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource- Throws:
java.io.IOException
-
getContents
@Nonnull public java.io.InputStream getContents() throws java.io.IOException- Specified by:
getContentsin interfaceorg.codehaus.plexus.components.io.functions.ContentSupplier- Specified by:
getContentsin interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo- Specified by:
getContentsin interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource- Throws:
java.io.IOException
-
-