public interface FileMode
The mode of a file.
Modifier and Type | Method and Description |
---|---|
int |
getMode()
Returns the mode as number including all octals.
|
String |
getOctal()
Returns the mode as an octal number consisting only of the last 3 octals.
|
int |
getStickyBit()
Returns the sticky bit.
|
String |
getText()
Returns the mode as textual representation excluding the "sticky
bit".
|
boolean |
isGroupExecutable()
Returns the flag if the group can execute the file.
|
boolean |
isGroupReadable()
Returns the flag if the group can read the file.
|
boolean |
isGroupWriteable()
Returns the flag if the group can write the file.
|
boolean |
isOtherExecutable()
Returns the flag if the others can execute the file.
|
boolean |
isOtherReadable()
Returns the flag if the others can read the file.
|
boolean |
isOtherWriteable()
Returns the flag if the others can write the file.
|
boolean |
isOwnerExecutable()
Returns the flag if the owner can execute the file.
|
boolean |
isOwnerReadable()
Returns the flag if the owner can read the file.
|
boolean |
isOwnerWriteable()
Returns the flag if the owner can write the file.
|
int getMode()
Returns the mode as number including all octals.
String getOctal()
Returns the mode as an octal number consisting only of the last 3 octals.
The returned value may look like this:
777
or like this:
000
String getText()
Returns the mode as textual representation excluding the "sticky bit".
The returned value may look like this:
rwxrwxrwx
or like this:
---------
int getStickyBit()
Returns the sticky bit.
See Changing permission behavior with setuid, setgid, and sticky bits for more information.
boolean isOwnerReadable()
Returns the flag if the owner can read the file.
true
, if the owner can, false
otherwise.boolean isOwnerWriteable()
Returns the flag if the owner can write the file.
true
, if the owner can, false
otherwise.boolean isOwnerExecutable()
Returns the flag if the owner can execute the file.
true
, if the owner can, false
otherwise.boolean isGroupReadable()
Returns the flag if the group can read the file.
true
, if the group can, false
otherwise.boolean isGroupWriteable()
Returns the flag if the group can write the file.
true
, if the group can, false
otherwise.boolean isGroupExecutable()
Returns the flag if the group can execute the file.
true
, if the group can, false
otherwise.boolean isOtherReadable()
Returns the flag if the others can read the file.
true
, if the others can,
false
otherwise.boolean isOtherWriteable()
Returns the flag if the others can write the file.
true
, if the others can,
false
otherwise.boolean isOtherExecutable()
Returns the flag if the others can execute the file.
true
, if the others can,
false
otherwise.Copyright © 2015–2019. All rights reserved.