public class SymbolicLink extends File
| Constructor | Description |
|---|---|
SymbolicLink(java.nio.file.Path targetPath,
java.nio.file.Path referencedPath) |
Create a new symbolic link object.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
installContents(java.nio.file.Path targetAbsolutePath) |
Install the file into specified location.
|
equals, getAccessMode, getDescriptor, getDescriptorExtra, getTargetPath, hashCode, installpublic SymbolicLink(java.nio.file.Path targetPath,
java.nio.file.Path referencedPath)
targetPath - location where the symbolic link will be placed (relative to install root)referencedPath - path referenced by this symlink (i.e. contents of the symlink)protected void installContents(java.nio.file.Path targetAbsolutePath)
throws java.io.IOException
FileImplementations of this method can assume that all parent directory of target file already exists. Access mode of target file doesn't have to be set as it will be manipulated with other means.
installContents in class FiletargetAbsolutePath - absolute path to the target filejava.io.IOException