src/share/classes/java/nio/channels/SelectionKey.java
Print this page
@@ -189,11 +189,11 @@
* @return This selection key
*
* @throws IllegalArgumentException
* If a bit in the set does not correspond to an operation that
* is supported by this key's channel, that is, if
- * <tt>(ops & ~channel().validOps()) != 0</tt>
+ * {@code (ops & ~channel().validOps()) != 0}
*
* @throws CancelledKeyException
* If this key has been cancelled
*/
public abstract SelectionKey interestOps(int ops);
@@ -270,19 +270,19 @@
* Tests whether this key's channel is ready for reading.
*
* <p> An invocation of this method of the form <tt>k.isReadable()</tt>
* behaves in exactly the same way as the expression
*
- * <blockquote><pre>
- * k.readyOps() & OP_READ != 0</pre></blockquote>
+ * <blockquote><pre>{@code
+ * k.readyOps() & OP_READ != 0
+ * }</pre></blockquote>
*
* <p> If this key's channel does not support read operations then this
* method always returns <tt>false</tt>. </p>
*
* @return <tt>true</tt> if, and only if,
- * <tt>readyOps()</tt> <tt>&</tt> <tt>OP_READ</tt> is
- * nonzero
+ {@code readyOps() & OP_READ} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
*/
public final boolean isReadable() {
@@ -293,19 +293,19 @@
* Tests whether this key's channel is ready for writing.
*
* <p> An invocation of this method of the form <tt>k.isWritable()</tt>
* behaves in exactly the same way as the expression
*
- * <blockquote><pre>
- * k.readyOps() & OP_WRITE != 0</pre></blockquote>
+ * <blockquote><pre>{@code
+ * k.readyOps() & OP_WRITE != 0
+ * }</pre></blockquote>
*
* <p> If this key's channel does not support write operations then this
* method always returns <tt>false</tt>. </p>
*
* @return <tt>true</tt> if, and only if,
- * <tt>readyOps()</tt> <tt>&</tt> <tt>OP_WRITE</tt>
- * is nonzero
+ * {@code readyOps() & OP_WRITE} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
*/
public final boolean isWritable() {
@@ -317,19 +317,19 @@
* finish, its socket-connection operation.
*
* <p> An invocation of this method of the form <tt>k.isConnectable()</tt>
* behaves in exactly the same way as the expression
*
- * <blockquote><pre>
- * k.readyOps() & OP_CONNECT != 0</pre></blockquote>
+ * <blockqoute><pre>{@code
+ * k.readyOps() & OP_CONNECT != 0
+ * }</pre></blockquote>
*
* <p> If this key's channel does not support socket-connect operations
* then this method always returns <tt>false</tt>. </p>
*
* @return <tt>true</tt> if, and only if,
- * <tt>readyOps()</tt> <tt>&</tt> <tt>OP_CONNECT</tt>
- * is nonzero
+ * {@code readyOps() & OP_CONNECT} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
*/
public final boolean isConnectable() {
@@ -341,19 +341,19 @@
* connection.
*
* <p> An invocation of this method of the form <tt>k.isAcceptable()</tt>
* behaves in exactly the same way as the expression
*
- * <blockquote><pre>
- * k.readyOps() & OP_ACCEPT != 0</pre></blockquote>
+ * <blockquote><pre>{@code
+ * k.readyOps() & OP_ACCEPT != 0
+ * }</pre></blockquote>
*
* <p> If this key's channel does not support socket-accept operations then
* this method always returns <tt>false</tt>. </p>
*
* @return <tt>true</tt> if, and only if,
- * <tt>readyOps()</tt> <tt>&</tt> <tt>OP_ACCEPT</tt>
- * is nonzero
+ * {@code readyOps() & OP_ACCEPT} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
*/
public final boolean isAcceptable() {