public class TarResource
extends org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
implements org.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
Modifier and Type | Field and Description |
---|---|
private org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes |
attributes |
private org.apache.commons.compress.archivers.tar.TarArchiveEntry |
entry |
private TarFile |
tarFile |
Constructor and Description |
---|
TarResource(TarFile tarFile,
org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes |
getAttributes() |
java.io.InputStream |
getContents() |
private static long |
getLastModifiedTime(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) |
java.net.URL |
getURL() |
void |
setAttributes(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes) |
private final TarFile tarFile
private final org.apache.commons.compress.archivers.tar.TarArchiveEntry entry
private org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes
public TarResource(TarFile tarFile, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
private static long getLastModifiedTime(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
public org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getAttributes()
getAttributes
in interface org.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
public void setAttributes(org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes attributes)
public java.net.URL getURL() throws java.io.IOException
getURL
in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
java.io.IOException
@Nonnull public java.io.InputStream getContents() throws java.io.IOException
getContents
in interface org.codehaus.plexus.components.io.fileselectors.FileInfo
getContents
in interface org.codehaus.plexus.components.io.functions.ContentSupplier
getContents
in interface org.codehaus.plexus.components.io.resources.PlexusIoResource
java.io.IOException