Talk:Non-blocking I/O (Java)

From Wikipedia, the free encyclopedia
  (Redirected from Talk:New I/O)
Jump to: navigation, search
WikiProject Java (Rated Stub-class, Low-importance)
WikiProject icon This article is within the scope of WikiProject Java, a collaborative effort to improve the coverage of Java on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Stub-Class article Stub  This article has been rated as Stub-Class on the project's quality scale.
 Low  This article has been rated as Low-importance on the project's importance scale.
 

Untitled[edit]

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[edit]

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[edit]

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)

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 156.48.57.36 (talk) 12:10, 8 April 2011 (UTC)

Examples[edit]

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.

--88.114.29.229 (talk) 18:43, 17 March 2010 (UTC)

Links not working anymore...[edit]

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. --178.197.228.138 (talk) 18:19, 18 January 2014 (UTC)

Doesn't "NIO" Stand for "non-blocking I/O" ?[edit]

According from this link from documentation: http://docs.oracle.com/javase/7/docs/technotes/guides/io/enhancements.html#7

File I/O (featuring NIO 2.0) in the Java Tutorials; NIO stands for non-blocking I/O — Preceding unsigned comment added by 91.219.115.2 (talk) 05:59, 6 April 2014 (UTC)