O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Transmission and Object Serialization

Java has provided for a network I/O interface by allowing a Java socket to return a stream object, either a java.net.InputStream or a java.net.OutputStream. This means that reading and writing data to the socket is functionally similar to reading and writing data to any other device that can be used with the stream interface—for example, a file with the FileInputStream or a byte array (with the ByteArrayInputStream). Primitive data types can be transmitted over socket connections without concern for type compatibility across the potentially different machine architectures.

A significant feature of Java socket support is the capability to transmit Java objects over the socket connection. This support ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required