Package jnr.posix.util
Class Chmod
- java.lang.Object
-
- jnr.posix.util.Chmod
-
public class Chmod extends java.lang.ObjectHonor 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 booleanCHMOD_API_AVAILABLEprivate static java.lang.reflect.MethodsetExecutableprivate static java.lang.reflect.MethodsetReadableprivate static java.lang.reflect.MethodsetWritable
-
Constructor Summary
Constructors Constructor Description Chmod()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intchmod(java.io.File file, java.lang.String mode)private static booleansetPermissions(java.io.File file, char permChar, boolean userOnly)
-