| java.lang.Object org.pdfbox.util.BitFlagHelper
BitFlagHelper | public class BitFlagHelper (Code) | | This class will be used for bit flag operations.
author: Ben Litchfield version: $Revision: 1.4 $ |
Method Summary | |
final public static boolean | getFlag(COSDictionary dic, String field, int bitFlag) Gets the boolean value from the flags at the given bit
position.
Parameters: dic - The dictionary to get the field from. Parameters: field - The name of the field to get the flag from. Parameters: bitFlag - the bitPosition to get the value from. | final public static void | setFlag(COSDictionary dic, String field, int bitFlag, boolean value) Sets the given boolean value at bitPos in the flags. |
getFlag | final public static boolean getFlag(COSDictionary dic, String field, int bitFlag)(Code) | | Gets the boolean value from the flags at the given bit
position.
Parameters: dic - The dictionary to get the field from. Parameters: field - The name of the field to get the flag from. Parameters: bitFlag - the bitPosition to get the value from. true if the number at bitPos is '1' |
setFlag | final public static void setFlag(COSDictionary dic, String field, int bitFlag, boolean value)(Code) | | Sets the given boolean value at bitPos in the flags.
Parameters: dic - The dictionary to set the value into. Parameters: field - The name of the field to set the value into. Parameters: bitFlag - the bit position to set the value in. Parameters: value - the value the bit position should have. |
|
|