public abstract class AclFormattingUtils extends Object
Constructor and Description |
---|
AclFormattingUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
demergePatterns(String original,
String removeBits) |
static String |
mergePatterns(String original,
String extraBits) |
static String |
printBinary(int i)
Returns a representation of the active bits in the presented mask, with each active
bit being denoted by character '*'.
|
static String |
printBinary(int mask,
char code)
Returns a representation of the active bits in the presented mask, with each active
bit being denoted by the passed character.
|
public static String printBinary(int i)
Inactive bits will be denoted by character Permission.RESERVED_OFF
.
i
- the integer bit mask to print the active bits forpublic static String printBinary(int mask, char code)
Inactive bits will be denoted by character Permission.RESERVED_OFF
.
mask
- the integer bit mask to print the active bits forcode
- the character to print when an active bit is detected