src/share/classes/java/nio/channels/SelectableChannel.java

Print this page

        

*** 206,216 **** * but the corresponding key has already been cancelled * * @throws IllegalArgumentException * If a bit in the <tt>ops</tt> set does not correspond to an * operation that is supported by this channel, that is, if ! * <tt>set & ~validOps() != 0</tt> * * @return A key representing the registration of this channel with * the given selector */ public abstract SelectionKey register(Selector sel, int ops, Object att) --- 206,216 ---- * but the corresponding key has already been cancelled * * @throws IllegalArgumentException * If a bit in the <tt>ops</tt> set does not correspond to an * operation that is supported by this channel, that is, if ! * {@code set & ~validOps() != 0} * * @return A key representing the registration of this channel with * the given selector */ public abstract SelectionKey register(Selector sel, int ops, Object att)
*** 263,274 **** * If this channel is currently registered with the given selector * but the corresponding key has already been cancelled * * @throws IllegalArgumentException * If a bit in <tt>ops</tt> does not correspond to an operation ! * that is supported by this channel, that is, if <tt>set & ! * ~validOps() != 0</tt> * * @return A key representing the registration of this channel with * the given selector */ public final SelectionKey register(Selector sel, int ops) --- 263,274 ---- * If this channel is currently registered with the given selector * but the corresponding key has already been cancelled * * @throws IllegalArgumentException * If a bit in <tt>ops</tt> does not correspond to an operation ! * that is supported by this channel, that is, if {@code set & ! * ~validOps() != 0} * * @return A key representing the registration of this channel with * the given selector */ public final SelectionKey register(Selector sel, int ops)