addbk.JAddressBook.dataMining
Class Lawyers

java.lang.Object
  extended by addbk.JAddressBook.dataMining.Lawyers
All Implemented Interfaces:
java.lang.Runnable

public class Lawyers
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
Lawyers(int stateNumber, java.lang.String typeOfLawyer)
           
 
Method Summary
static java.lang.String getLawyerText(java.lang.String lawyerType, java.lang.String stateName, int pageNumber)
           
static void main(java.lang.String[] args)
           
 void run()
          this run method is used to scan the lawyers and to stop the scan.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lawyers

public Lawyers(int stateNumber,
               java.lang.String typeOfLawyer)
Parameters:
stateNumber - is the state Number required to look for the proper URL
typeOfLawyer - is the type of Lawyer string needed in order to browse the right URL
Method Detail

run

public void run()
this run method is used to scan the lawyers and to stop the scan.

Specified by:
run in interface java.lang.Runnable

getLawyerText

public static java.lang.String getLawyerText(java.lang.String lawyerType,
                                             java.lang.String stateName,
                                             int pageNumber)
                                      throws java.io.IOException,
                                             javax.swing.text.BadLocationException
Throws:
java.io.IOException
javax.swing.text.BadLocationException

main

public static void main(java.lang.String[] args)