• 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: 9443
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!