addbk.JAddressBook.dataMining
Class YellowPagesUrlUtils

java.lang.Object
  extended by addbk.JAddressBook.dataMining.YellowPagesUrlUtils

public class YellowPagesUrlUtils
extends java.lang.Object

Created by IntelliJ IDEA. User: dlyon DocJava, Inc,Dec 7, 2007,7:21:25 PM For next week build a GUI for your data mining program that can allow the user to control the selection of states and categories. Use datamining to extract the categories from getURLCategories. To get the data you can use: stringtokenizer or htmleditor or regexp or string manupulation or sax or ???


Constructor Summary
YellowPagesUrlUtils()
           
 
Method Summary
static java.lang.String[] Categories(java.net.URL url)
           
static java.lang.String[] getCategories()
           
static java.lang.String[] getCategories(java.net.URL[] u)
           
static java.net.URL getURLCategories(char letter)
           
static java.net.URL[] getUrls(YellowPagesBean b)
           
static java.net.URL getYellowPagesUrl(java.lang.String stateCode, java.lang.String category, int pageNumber)
           
static void main(java.lang.String[] args)
           
static void test()
           
static void test2()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YellowPagesUrlUtils

public YellowPagesUrlUtils()
Method Detail

getYellowPagesUrl

public static java.net.URL getYellowPagesUrl(java.lang.String stateCode,
                                             java.lang.String category,
                                             int pageNumber)
                                      throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getURLCategories

public static java.net.URL getURLCategories(char letter)
                                     throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

test

public static void test()
                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getCategories

public static java.lang.String[] getCategories()

getCategories

public static java.lang.String[] getCategories(java.net.URL[] u)
                                        throws java.io.IOException,
                                               javax.swing.text.BadLocationException
Throws:
java.io.IOException
javax.swing.text.BadLocationException

Categories

public static java.lang.String[] Categories(java.net.URL url)
                                     throws java.io.IOException,
                                            javax.swing.text.BadLocationException
Throws:
java.io.IOException
javax.swing.text.BadLocationException

test2

public static void test2()

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        javax.swing.text.BadLocationException
Throws:
java.io.IOException
javax.swing.text.BadLocationException

getUrls

public static java.net.URL[] getUrls(YellowPagesBean b)