my dog learned polymorphism*
The moose likes Sockets and Internet Protocols and the fly likes Object serialization with Java NIO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Object serialization with Java NIO" Watch "Object serialization with Java NIO" New topic

Object serialization with Java NIO

Daniel Zuckermann
Ranch Hand

Joined: May 14, 2012
Posts: 50
Hello people,
I am not sure how I could serialize objects to send them over the internet from one Java NIO client socket to a Java NIO server socket. NIO sockets read from buffers, so I have to serialize the objects before and then somehow read them into the buffer. How does this work?
It is sorta covered in the JavaRanch Style Guide.
subject: Object serialization with Java NIO
Similar Threads
Convert nio bytebufer to String newbie
How to write telnet server like program?
How to upload a file of size >8GB ?
what is Java NIO and when should I use it?
Unblocking sockets