Package org.codehaus.plexus.archiver.tar
Class TarSymlinkResource
java.lang.Object
org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
org.codehaus.plexus.archiver.tar.TarResource
org.codehaus.plexus.archiver.tar.TarSymlinkResource
- 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.functions.SymlinkDestinationSupplier
,org.codehaus.plexus.components.io.resources.PlexusIoResource
public class TarSymlinkResource
extends TarResource
implements org.codehaus.plexus.components.io.functions.SymlinkDestinationSupplier
A
TarResource
that represents symbolic link.-
Field Summary
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE
-
Constructor Summary
ConstructorDescriptionTarSymlinkResource
(TarFile tarFile, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) -
Method Summary
Methods inherited from class org.codehaus.plexus.archiver.tar.TarResource
getAttributes, getContents, getURL, setAttributes
Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
getLastModified, getName, getSize, isDirectory, isExisting, isFile
-
Constructor Details
-
TarSymlinkResource
public TarSymlinkResource(TarFile tarFile, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
-
-
Method Details
-
getSymlinkDestination
- Specified by:
getSymlinkDestination
in interfaceorg.codehaus.plexus.components.io.functions.SymlinkDestinationSupplier
- Throws:
IOException
-
isSymbolicLink
public boolean isSymbolicLink()- Specified by:
isSymbolicLink
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Overrides:
isSymbolicLink
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-