[jdom-interest] Bit masks in ContentFilter

Noam Tamim noamt at yahoo.com
Fri Apr 12 14:50:20 PDT 2002

--- Jason Hunter <jhunter at servlets.com> wrote:
> Playing devil's advocate for a second, they use bitmasks in the brand
> spanking New I/O library.  So new it has New in the name.  :-)
> Look at the SelectableChannel.register(x, y, OP_ACCEPT) call where
> OP_ACCEPT is an int in a bitmask.  All around selectors you need to do
> bitmask work.  I don't think Sun's treating it like a relic from C.

Now that you mention it, there's another place in the API where bitmasking is
used: Reflection. Just look at the java.lang.reflect.Modifier class.


Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

More information about the jdom-interest mailing list