public class ChmodParser extends Object
限定符和类型 | 字段和说明 |
---|---|
protected short |
groupMode |
protected char |
groupType |
protected short |
othersMode |
protected char |
othersType |
protected boolean |
symbolic |
protected short |
userMode |
protected char |
userType |
构造器和说明 |
---|
ChmodParser(String modeStr) |
限定符和类型 | 方法和说明 |
---|---|
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 char userType
protected char groupType
protected char othersType
public ChmodParser(String modeStr) throws 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 © 2009 The Apache Software Foundation