This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help about nio...  RSS feed

 
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
 
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at this post
 
Bartender
Posts: 9493
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.
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!