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)
PosixFile
public int getMode(java.io.File file)
PosixFile
public java.lang.String readLink(java.io.File link) throws NativeException
PosixFile
readLink
in interface PosixFile
NativeException
- On failure.public void symlink(java.io.File link, java.lang.String contents) throws NativeException
PosixFile
symlink
in interface PosixFile
NativeException
- On failure.