Package jnr.posix.util
Class Chmod
- java.lang.Object
-
- jnr.posix.util.Chmod
-
public class Chmod extends java.lang.Object
Honor semantics of chmod as best we can in pure Java. Note, this uses reflection to be more tolerant of different Java versions.
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
CHMOD_API_AVAILABLE
private static java.lang.reflect.Method
setExecutable
private static java.lang.reflect.Method
setReadable
private static java.lang.reflect.Method
setWritable
-
Constructor Summary
Constructors Constructor Description Chmod()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
chmod(java.io.File file, java.lang.String mode)
private static boolean
setPermissions(java.io.File file, char permChar, boolean userOnly)
-