jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Generic file type and POSIX protection mode bits as used in file_stats, touch(), mkdir() etc. More...
Classes | |
enum | Bit |
Public Member Functions | |
FMode (final int v) | |
FMode () | |
boolean | isSet (final Bit bit) |
FMode | set (final Bit bit) |
Sets the given bit and returns this instance for chaining. More... | |
FMode | mask (final int bits) |
String | toString () |
String | toString (final boolean show_rwx) |
boolean | equals (final Object other) |
Public Attributes | |
int | mask |
Static Public Attributes | |
static final FMode | def_dir = new FMode(FMode.Bit.def_dir_prot.value) |
Default directory protection bit: Safe default: POSIX S_IRWXU | S_IRGRP | S_IXGRP or rwx_usr | read_grp | exec_grp. More... | |
static final FMode | def_file = new FMode(FMode.Bit.def_file_prot.value) |
Default file protection bit: Safe default: POSIX S_IRUSR | S_IWUSR | S_IRGRP or read_usr | write_usr | read_grp. More... | |
Generic file type and POSIX protection mode bits as used in file_stats, touch(), mkdir() etc.
The POSIX protection mode bits reside in the lower 16-bits and are bit-wise POSIX compliant while the file type bits reside in the upper 16-bits and are platform agnostic.
This enum class
type fulfills C++ named requirements: BitmaskType
.
Definition at line 37 of file FMode.java.
org.jau.fs.FMode.FMode | ( | final int | v | ) |
Definition at line 116 of file FMode.java.
org.jau.fs.FMode.FMode | ( | ) |
boolean org.jau.fs.FMode.equals | ( | final Object | other | ) |
Definition at line 149 of file FMode.java.
boolean org.jau.fs.FMode.isSet | ( | final Bit | bit | ) |
FMode org.jau.fs.FMode.mask | ( | final int | bits | ) |
Sets the given bit and returns this instance for chaining.
bit | the given Bit value to set |
Definition at line 130 of file FMode.java.
String org.jau.fs.FMode.toString | ( | ) |
Definition at line 141 of file FMode.java.
String org.jau.fs.FMode.toString | ( | final boolean | show_rwx | ) |
Definition at line 144 of file FMode.java.
Default directory protection bit: Safe default: POSIX S_IRWXU | S_IRGRP | S_IXGRP or rwx_usr | read_grp | exec_grp.
Definition at line 158 of file FMode.java.
Default file protection bit: Safe default: POSIX S_IRUSR | S_IWUSR | S_IRGRP or read_usr | write_usr | read_grp.
Definition at line 161 of file FMode.java.
int org.jau.fs.FMode.mask |
Definition at line 114 of file FMode.java.