Package org.codehaus.plexus.archiver.zip
Class ZipResource
java.lang.Object
org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
org.codehaus.plexus.archiver.zip.ZipResource
- 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:
ZipSymlinkResource
public class ZipResource
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
ConstructorDescriptionZipResource
(org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry, org.codehaus.plexus.components.io.functions.InputStreamTransformer streamTransformer) -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes
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
-
Constructor Details
-
ZipResource
public ZipResource(org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry, org.codehaus.plexus.components.io.functions.InputStreamTransformer streamTransformer)
-
-
Method Details
-
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
- Specified by:
getURL
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
IOException
-
getContents
- 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
-