Talk:Non-blocking I/O (Java)
|WikiProject Java||(Rated Stub-class, Low-importance)|
Can you add some details about the difference between java.io.* and java.nio.* Jgold03 01:20, 27 March 2006 (UTC)
maybe this is about what the link pointed to: http://java.sun.com/developer/technicalArticles/releases/nio/index.html
--184.108.40.206 20:19, 30 April 2007 (UTC)
In "Copying NIO Buffers", Method 1 is flawed. The buffer2 object is completely lost after executing "buffer2 = buffer1;". After completing the execution, buffer2 points actually to buffer1.
I think the whole Copying NIO Buffers is a pointless section anyway. I suggest removing it. Actually, I'll just remove it and if someone thinks it should be re-added, we'll re-add a valid version. DanielPitts (talk) 19:11, 15 January 2008 (UTC)
Last two points of "Some Usage Information for NIO Buffers" are completly wrong. NIO buffers don't block. get() into array larger than remaining() throws BufferUnderflowException instead. get into an array behind read only buffer will proceed as usual - read only buffer is just a wrapper, but never gives its clients the underlaying array anyway. —Preceding unsigned comment added by 220.127.116.11 (talk) 07:55, 12 December 2007 (UTC)
You are right, blocking NIO was nonsense. Removed.
While it's true that the NIO pages have examples on how to use regular expressions with NIO, regular expressions are not a part of NIO. Thus I feel it's a bit misleading that there is a "Regular expressions" subheading below the "Features and organization" heading. Perhaps it would be clearer to have a new top-level heading "Example uses" or similar and discussing regular expressions below that.
Seems that maybe I was wrong after all, the regular expressions are listed as a feature in the JSR 51..
Even though it's listed as a feature, I don't see how it can be called part of NIO. NIO certainly allows the use of regex but regex is not part of NIO (at least as far as I can see).
My main gripe though was that the example takes up so much space compared to the more core areas of NIO. It makes it seem that regex is a core part of NIO whereas it's merely a way of using the existing regex API with NIO. In addition, if the regex example is only a minor alteration of the offical example, why keep it? A link should be sufficient. —Preceding unsigned comment added by 18.104.22.168 (talk) 12:10, 8 April 2011 (UTC)
I think the new socket selectors and socket channels should be demonstrated with some example to avoid giving the impression that regular expressions and file handling alone represent the major advances.
Links not working anymore...
Since dump-shit Oracle wiped the 1.4 API (they didn't really get that the Java API is supposed to never change!), you need to replace some links with new ones. --22.214.171.124 (talk) 18:19, 18 January 2014 (UTC)
Doesn't "NIO" Stand for "non-blocking I/O" ?
According from this link from documentation: http://docs.oracle.com/javase/7/docs/technotes/guides/io/enhancements.html#7