intarsys PDF library API

de.intarsys.pdf.pd
Class AbstractBitFlags

java.lang.Object
  extended by 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.


Constructor Summary
AbstractBitFlags()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBitFlags

public AbstractBitFlags()
Method Detail

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

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.