de.intarsys.pdf.pd
Class AbstractBitFlags
java.lang.Object
de.intarsys.pdf.pd.AbstractBitFlags
- Direct Known Subclasses:
- AbstractAccessPermissions, AcroFormFieldFlags, AcroFormSigFlags, AnnotationFlags, FontDescriptorFlags, OutlineItemFlags, SubmitFormFlags
public abstract class AbstractBitFlags
- extends Object
AbstractBitFlags provides access to an integer containing bit wise flags. The
concrete value is provided by an assoiated PDF object along with access
method to the value within the object.
Method Summary |
boolean |
isSetAnd(int bitMask)
Checks if all the bits set in the bit mask are also set in the underlying
integer. |
boolean |
isSetOr(int bitMask)
Checks if one of the bits set in the bit mask are also set in the
underlying integer. |
AbstractBitFlags
public AbstractBitFlags()
isSetAnd
public boolean isSetAnd(int bitMask)
- Checks if all the bits set in the bit mask are also set in the underlying
integer. A clear bit == 0 and a set bit == 1.
- Parameters:
bitMask
- a integer containing the bit mask to test
- Returns:
- true if all bits in the mask are set in the underlying integer
isSetOr
public boolean isSetOr(int bitMask)
- Checks if one of the bits set in the bit mask are also set in the
underlying integer. A clear bit == 0 and a set bit == 1.
- Parameters:
bitMask
- a integer containing the bit mask
- Returns:
- true if one of the bits in the mask are set in the underlying
integer
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.