Summary

Networking has many applications of which your programs can make use. You might not have realized it, but the GetFile project was a rudimentary Web browser. It brought a Web page's text into a Java program and displayed it. Of course, the HTML parsing is what turns a bunch of markup tags into a real Web page. Sun wrote an entire Web browser in Java—HotJava.

Today you learned how to use URLs, URL connections, and input streams in conjunction to pull data from the World Wide Web into your program.

You created a socket application that implements the basics of the finger protocol, a method for retrieving user information on the Internet.

You also learned how client and server programs are written in Java and how a server program makes connections ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.