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

java nio usefull for...  RSS feed

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i need to create a server and a client

on the server, some image and text will be created, the client need to receive this information

are there any advantage to use nio for this program?

thanks
 
Bartender
Posts: 9492
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java NIO introduced functionality not available in the java.io library (this article describes many of these new features). The java.io classes were reimplemented using NIO so there is little performance difference between the two. Unless you need some functionality not available in java.io/java.net like nonblocking socket IO, you'll do fine without NIO.
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
free 1 hour java lesson
https://coderanch.com/t/695988/free-hour-java-lesson
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!