December 2002
Intermediate to advanced
1050 pages
24h 49m
English
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 ...
Read now
Unlock full access