Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help about nio...  RSS feed

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends ,
I am back to you all experts to get some more things clarified.
Well cud anyone tell me the list of differences between java.io package and the java.nio packages ??
One thing which is very much clear to me is that java.nio is more faster that java.io ?? but i wanna know more of it ..
i hope you guys would turn up soon with positive response.
Thanks,
Saurabh
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at this post
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And check out these examples and documentation. The classes in java.io have been rewritten to use the java.nio classes as their underlying implementation so the performance difference should be slight between the two. The advantage nio has over io is in the new functionality it offers, like non-blocking IO, file locking, memory mapped IO, character-set encoding and so on.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!