Talk:Non-blocking I/O (Java)
![]() | Java Unassessed | |||||||||
|
Can you add some details about the difference between java.io.* and java.nio.* Jgold03 01:20, 27 March 2006 (UTC)
dead link - New I/O APIs - description of New I/O
maybe this is about what the link pointed to:
http://java.sun.com/developer/technicalArticles/releases/nio/index.html
--212.202.41.193 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 192.9.112.196 (talk) 07:55, 12 December 2007 (UTC)
You are right, blocking NIO was nonsense. Removed.
Regular expressions
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.
--88.114.29.229 (talk) 18:43, 17 March 2010 (UTC)
Seems that maybe I was wrong after all, the regular expressions are listed as a feature in the JSR 51..
--88.114.29.229 (talk) 19:29, 17 March 2010 (UTC)
Examples
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.