public class PlexusIoSymlinkResource extends PlexusIoFileResource implements SymlinkDestinationSupplier
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE| Modifier and Type | Method and Description |
|---|---|
PlexusIoResourceAttributes |
getAttributes() |
long |
getLastModified()
Returns the date, when the resource was last modified, if known.
|
PlexusIoResource |
getLink() |
long |
getSize()
Returns the resources size, if known.
|
String |
getSymlinkDestination() |
PlexusIoResource |
getTarget() |
boolean |
isDirectory()
Returns, whether the
FileInfo refers to a directory. |
boolean |
isExisting()
Returns, whether the resource exists.
|
boolean |
isFile()
Returns, whether the
FileInfo refers to a file. |
getContents, getDfos, getFile, getFileAttributes, getName, getURL, isSymbolicLinkgetNamepublic String getSymlinkDestination() throws IOException
getSymlinkDestination in interface SymlinkDestinationSupplierIOExceptionpublic PlexusIoResource getTarget()
public PlexusIoResource getLink() throws IOException
IOExceptionpublic long getSize()
PlexusIoResourcePlexusIoResource.UNKNOWN_RESOURCE_SIZE.getSize in interface SizeSuppliergetSize in interface PlexusIoResourcegetSize in class PlexusIoFileResourcepublic boolean isDirectory()
PlexusIoResourceFileInfo refers to a directory.isDirectory in interface FileInfoisDirectory in interface PlexusIoResourceisDirectory in class PlexusIoFileResourcepublic boolean isExisting()
PlexusIoResourceisExisting in interface PlexusIoResourceisExisting in class PlexusIoFileResourcepublic boolean isFile()
PlexusIoResourceFileInfo refers to a file.isFile in interface FileInfoisFile in interface PlexusIoResourceisFile in class PlexusIoFileResourcepublic long getLastModified()
PlexusIoResourcePlexusIoResource.UNKNOWN_MODIFICATION_DATE.getLastModified in interface PlexusIoResourcegetLastModified in class PlexusIoFileResourceFile.lastModified()@Nonnull public PlexusIoResourceAttributes getAttributes()
getAttributes in interface ResourceAttributeSuppliergetAttributes in class PlexusIoFileResourceCopyright © 2001–2023 Codehaus Plexus. All rights reserved.