@InterfaceAudience.Private @InterfaceStability.Unstable public class ChmodParser extends Object
Modifier and Type | Field and 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 and Description |
---|
ChmodParser(String modeStr) |
Modifier and Type | Method and 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(String modeStr) throws IllegalArgumentException
IllegalArgumentException
public 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 © 2013 Apache Software Foundation. All rights reserved.