addbk.JAddressBook.dataMining
Class YellowPagesUrlUtils
java.lang.Object
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 ???
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YellowPagesUrlUtils
public YellowPagesUrlUtils()
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)