ws.qe
Class Tools.getDocWeb

java.lang.Object
  extended byws.qe.Tools.getDocWeb
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Tools

private class Tools.getDocWeb
extends java.lang.Object
implements java.lang.Runnable

This private class contains the run method for downloading a website.

This class implements the interface Runnable, over-writing the inherited run mathod from it, so the process of website download could be interrupted after its start without existing from the method calling it or the main program.

This class is to be called both in "Module I" and "Module II".

Author:
Sinian Zhang
See Also:
Tools.WebTextTokenStem(String, int, String, String, String, String), Tools.WebTextTokenStem(String[], String, String, String, String)

Field Summary
private  java.lang.String outFile
          The html-file in which the downloaded website is to be saved.
private  java.lang.String urlAddress
          The URL as Google search result.
 
Constructor Summary
protected Tools.getDocWeb(java.lang.String urlAddress, java.lang.String outFile)
          Initializes a getDocWeb object.
 
Method Summary
 void run()
          Over-writes the inherited method run from for its implemented interface Runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlAddress

private java.lang.String urlAddress
The URL as Google search result.


outFile

private java.lang.String outFile
The html-file in which the downloaded website is to be saved.

Constructor Detail

Tools.getDocWeb

protected Tools.getDocWeb(java.lang.String urlAddress,
                          java.lang.String outFile)
Initializes a getDocWeb object.

Parameters:
urlAddress - The URL as Google search result.
outFile - The html-file in which the downloaded website is to be saved.
Method Detail

run

public void run()
Over-writes the inherited method run from for its implemented interface Runnable.

Specified by:
run in interface java.lang.Runnable