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
PosixFilesstat in interface PosixFilesNativeException - On failure.public void setMode(java.io.File file,
int perms)
PosixFilessetMode in interface PosixFilespublic int getMode(java.io.File file)
PosixFilesgetMode in interface PosixFilespublic java.lang.String readLink(java.io.File link)
throws NativeException
PosixFilesreadLink in interface PosixFilesNativeException - On failure.public void symlink(java.io.File link,
java.lang.String contents)
throws NativeException
PosixFilessymlink in interface PosixFilesNativeException - On failure.