Java Reference
In-Depth Information
{
URL urlOfficial = new URL(url, value);
URL urlFlag = new URL(url, src);
processItem(urlOfficial, urlFlag);
} else
first = false;
}
}
} else
{
buffer.append((char) ch);
}
}
return result;
}
/**
* Called to download the state information from several
* partial pages.
* Each page displays only 5 of the 50 states, so it is
* necessary to link
* each partial page together. THis method calls "process"
* which will process
* each of the partial pages, until there is no more data.
* @throws IOException Thrown if an exception occurs
* while reading.
*/
public void process() throws IOException
{
URL url = new URL(
"http://www.httprecipes.com/1/6/partial.php");
do
{
url = process(url);
} while (url != null);
}
/**
* The main method, create a new instance of the object and call
* process.
* @param args not used.
*/
public static void main(String args[])
{
Search WWH ::




Custom Search