Class PlexusIoSymlinkResource
java.lang.Object
org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
org.codehaus.plexus.components.io.resources.PlexusIoFileResource
org.codehaus.plexus.components.io.resources.PlexusIoSymlinkResource
- All Implemented Interfaces:
FileInfo,ContentSupplier,FileSupplier,NameSupplier,ResourceAttributeSupplier,SizeSupplier,SymlinkDestinationSupplier,PlexusIoResource
public class PlexusIoSymlinkResource
extends PlexusIoFileResource
implements SymlinkDestinationSupplier
-
Field Summary
FieldsFields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)PlexusIoSymlinkResource(File symlinkfile, String name, PlexusIoResourceAttributes attrs) privatePlexusIoSymlinkResource(File symlinkfile, String name, PlexusIoResourceAttributes attrs, String symLinkDestination, PlexusIoFileResource targetResource) (package private)PlexusIoSymlinkResource(File symlinkfile, String name, PlexusIoResourceAttributes attrs, Path linkPath) privatePlexusIoSymlinkResource(File symlinkfile, String name, PlexusIoResourceAttributes attrs, Path path, Path linkPath) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the date, when the resource was last modified, if known.getLink()longgetSize()Returns the resources size, if known.booleanReturns, whether theFileInforefers to a directory.booleanReturns, whether the resource exists.booleanisFile()Returns, whether theFileInforefers to a file.Methods inherited from class org.codehaus.plexus.components.io.resources.PlexusIoFileResource
getAttributes, getContents, getDfos, getFile, getFileAttributes, getName, getURL, isSymbolicLinkMethods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
getName
-
Field Details
-
symLinkDestination
-
targetResource
-
-
Constructor Details
-
PlexusIoSymlinkResource
PlexusIoSymlinkResource(@Nonnull File symlinkfile, String name, @Nonnull PlexusIoResourceAttributes attrs) throws IOException - Throws:
IOException
-
PlexusIoSymlinkResource
PlexusIoSymlinkResource(@Nonnull File symlinkfile, String name, @Nonnull PlexusIoResourceAttributes attrs, Path linkPath) throws IOException - Throws:
IOException
-
PlexusIoSymlinkResource
private PlexusIoSymlinkResource(@Nonnull File symlinkfile, String name, @Nonnull PlexusIoResourceAttributes attrs, Path path, Path linkPath) throws IOException - Throws:
IOException
-
PlexusIoSymlinkResource
private PlexusIoSymlinkResource(@Nonnull File symlinkfile, String name, @Nonnull PlexusIoResourceAttributes attrs, String symLinkDestination, PlexusIoFileResource targetResource) throws IOException - Throws:
IOException
-
-
Method Details
-
getSymlinkDestination
- Specified by:
getSymlinkDestinationin interfaceSymlinkDestinationSupplier- Throws:
IOException
-
getTarget
-
getLink
- Throws:
IOException
-
getSize
public long getSize()Description copied from interface:PlexusIoResourceReturns the resources size, if known. Otherwise returnsPlexusIoResource.UNKNOWN_RESOURCE_SIZE.- Specified by:
getSizein interfacePlexusIoResource- Specified by:
getSizein interfaceSizeSupplier- Overrides:
getSizein classPlexusIoFileResource
-
isDirectory
public boolean isDirectory()Description copied from interface:PlexusIoResourceReturns, whether theFileInforefers to a directory.- Specified by:
isDirectoryin interfaceFileInfo- Specified by:
isDirectoryin interfacePlexusIoResource- Overrides:
isDirectoryin classPlexusIoFileResource
-
isExisting
public boolean isExisting()Description copied from interface:PlexusIoResourceReturns, whether the resource exists.- Specified by:
isExistingin interfacePlexusIoResource- Overrides:
isExistingin classPlexusIoFileResource
-
isFile
public boolean isFile()Description copied from interface:PlexusIoResourceReturns, whether theFileInforefers to a file.- Specified by:
isFilein interfaceFileInfo- Specified by:
isFilein interfacePlexusIoResource- Overrides:
isFilein classPlexusIoFileResource
-
getLastModified
public long getLastModified()Description copied from interface:PlexusIoResourceReturns the date, when the resource was last modified, if known. Otherwise, returnsPlexusIoResource.UNKNOWN_MODIFICATION_DATE.- Specified by:
getLastModifiedin interfacePlexusIoResource- Overrides:
getLastModifiedin classPlexusIoFileResource- See Also:
-