public class DefaultPosixFile extends java.lang.Object implements PosixFile
| Constructor and Description |
|---|
DefaultPosixFile() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMode(java.io.File file)
Gets the mode for the given file.
|
java.lang.String |
readLink(java.io.File link)
Reads the contents of a symbolic link.
|
void |
setMode(java.io.File file,
int perms)
Sets the mode for the given file.
|
void |
symlink(java.io.File link,
java.lang.String contents)
Creates a symbolic link.
|
public void setMode(java.io.File file,
int perms)
PosixFilepublic int getMode(java.io.File file)
PosixFilepublic java.lang.String readLink(java.io.File link)
throws NativeException
PosixFilereadLink in interface PosixFileNativeException - On failure.public void symlink(java.io.File link,
java.lang.String contents)
throws NativeException
PosixFilesymlink in interface PosixFileNativeException - On failure.