public class DefaultPosixFiles extends java.lang.Object implements PosixFiles
Constructor and Description |
---|
DefaultPosixFiles() |
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.
|
PosixFile |
stat(java.io.File file)
Returns basic information about the given file.
|
void |
symlink(java.io.File link,
java.lang.String contents)
Creates a symbolic link with given contents.
|
public PosixFile stat(java.io.File file) throws NativeException
PosixFiles
stat
in interface PosixFiles
NativeException
- On failure.public void setMode(java.io.File file, int perms)
PosixFiles
setMode
in interface PosixFiles
public int getMode(java.io.File file)
PosixFiles
getMode
in interface PosixFiles
public java.lang.String readLink(java.io.File link) throws NativeException
PosixFiles
readLink
in interface PosixFiles
NativeException
- On failure.public void symlink(java.io.File link, java.lang.String contents) throws NativeException
PosixFiles
symlink
in interface PosixFiles
NativeException
- On failure.