Java Reference
In-Depth Information
http://www.httprecipes.com/1/6/link.php
You can see this hyperlink list in Figure 6.4.
Figure 6.4: Hyperlinks
As you can see there is a listing of all fifty US states. This recipe will show how to extract
these states, and their links. The recipe is shown in Listing 6.7.
Listing 6.7: Parse Hyperlinks (ExtractLinks.java)
package com.heatonresearch.httprecipes.ch6.recipe4;
import java.io.*;
import java.net.*;
import com.heatonresearch.httprecipes.html.*;
public class ExtractLinks
{
/**
Search WWH ::




Custom Search