This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java nio usefull for...  RSS feed

 
mark smith
Ranch Hand
Posts: 258
  • 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
 
Joe Ess
Bartender
Posts: 9426
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!