edu.cmu.cs.readweb.util
Class Html

java.lang.Object
  extended byedu.cmu.cs.readweb.util.Html

public class Html
extends java.lang.Object


Constructor Summary
Html()
          Creates a new instance of Main
 
Method Summary
static java.lang.String convertLegalUrlName(java.lang.String uName)
          We stroe html file with its url name.
static java.lang.String getLinkFromURL(java.lang.String strURL)
           
static java.lang.String getPageFromURL(java.lang.String strURL)
          get text of html page from a URL link
static void writeUrlToFile(java.util.Vector v, java.lang.String filename)
          store a given wordbag feature to given file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Html

public Html()
Creates a new instance of Main

Method Detail

getPageFromURL

public static java.lang.String getPageFromURL(java.lang.String strURL)
get text of html page from a URL link


getLinkFromURL

public static java.lang.String getLinkFromURL(java.lang.String strURL)

convertLegalUrlName

public static java.lang.String convertLegalUrlName(java.lang.String uName)
We stroe html file with its url name. However, it is not allowed to have a file name with '/' or ':' in it. Here we replace '/' by '^', ':' by '_', '?' by '&'


writeUrlToFile

public static void writeUrlToFile(java.util.Vector v,
                                  java.lang.String filename)
store a given wordbag feature to given file