You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/10/09 10:39:57 UTC
svn commit: r1530528 -
/tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java
Author: markt
Date: Wed Oct 9 08:39:56 2013
New Revision: 1530528
URL: http://svn.apache.org/r1530528
Log:
Remove completed TODOs and pointless Javadoc
Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java?rev=1530528&r1=1530527&r2=1530528&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java Wed Oct 9 08:39:56 2013
@@ -91,7 +91,6 @@ public class NioChannel implements ByteC
* Closes this channel.
*
* @throws IOException If an I/O error occurs
- * TODO Implement this java.nio.channels.Channel method
*/
@Override
public void close() throws IOException {
@@ -106,7 +105,6 @@ public class NioChannel implements ByteC
* Tells whether or not this channel is open.
*
* @return <tt>true</tt> if, and only if, this channel is open
- * TODO Implement this java.nio.channels.Channel method
*/
@Override
public boolean isOpen() {
@@ -119,7 +117,6 @@ public class NioChannel implements ByteC
* @param src The buffer from which bytes are to be retrieved
* @return The number of bytes written, possibly zero
* @throws IOException If some other I/O error occurs
- * TODO Implement this java.nio.channels.WritableByteChannel method
*/
@Override
public int write(ByteBuffer src) throws IOException {
@@ -130,9 +127,9 @@ public class NioChannel implements ByteC
* Reads a sequence of bytes from this channel into the given buffer.
*
* @param dst The buffer into which bytes are to be transferred
- * @return The number of bytes read, possibly zero, or <tt>-1</tt> if the channel has reached end-of-stream
+ * @return The number of bytes read, possibly zero, or <tt>-1</tt> if the
+ * channel has reached end-of-stream
* @throws IOException If some other I/O error occurs
- * TODO Implement this java.nio.channels.ReadableByteChannel method
*/
@Override
public int read(ByteBuffer dst) throws IOException {
@@ -147,12 +144,7 @@ public class NioChannel implements ByteC
if (key != null && att != null && remove ) key.attach(null);
return att;
}
- /**
- * getBufHandler
- *
- * @return ApplicationBufferHandler
- * TODO Implement this org.apache.tomcat.util.net.SecureNioChannel method
- */
+
public ApplicationBufferHandler getBufHandler() {
return bufHandler;
}
@@ -160,31 +152,15 @@ public class NioChannel implements ByteC
public Poller getPoller() {
return poller;
}
- /**
- * getIOChannel
- *
- * @return SocketChannel
- * TODO Implement this org.apache.tomcat.util.net.SecureNioChannel method
- */
+
public SocketChannel getIOChannel() {
return sc;
}
- /**
- * isClosing
- *
- * @return boolean
- * TODO Implement this org.apache.tomcat.util.net.SecureNioChannel method
- */
public boolean isClosing() {
return false;
}
- /**
- * isInitHandshakeComplete
- *
- * @return boolean
- */
public boolean isHandshakeComplete() {
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org