@Private
@Unstable
public class ChmodParser
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected short |
groupMode |
|
protected char |
groupType |
|
protected short |
othersMode |
|
protected char |
othersType |
|
protected char |
stickyBitType |
|
protected short |
stickyMode |
|
protected boolean |
symbolic |
|
protected short |
userMode |
|
protected char |
userType |
| Constructor | Description |
|---|---|
ChmodParser(java.lang.String modeStr) |
| Modifier and Type | Method | Description |
|---|---|---|
short |
applyNewPermission(FileStatus file) |
Apply permission against specified file and determine what the
new mode would be
|
protected int |
combineModes(int existing,
boolean exeOk) |
|
protected int |
combineModeSegments(char type,
int mode,
int existing,
boolean exeOk) |
protected boolean symbolic
protected short userMode
protected short groupMode
protected short othersMode
protected short stickyMode
protected char userType
protected char groupType
protected char othersType
protected char stickyBitType
public ChmodParser(java.lang.String modeStr)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic short applyNewPermission(FileStatus file)
file - File against which to apply modeprotected int combineModes(int existing,
boolean exeOk)
protected int combineModeSegments(char type,
int mode,
int existing,
boolean exeOk)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.