rita
Interface HtmlParserIF


public interface HtmlParserIF


Method Summary
 void customParse(java.lang.String url, javax.swing.text.html.HTMLEditorKit.ParserCallback parserCallback)
          Returns the contents of the URL (generally a text/HTML page) after executing the callbacks in the ParserCallback object.
 java.lang.String fetch(java.lang.String url)
          Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.
 java.lang.String fetch(java.lang.String url, boolean stripTags)
          Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.
 java.lang.String fetch(java.lang.String url, boolean stripTags, int connectionTimeout)
          Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.
 java.lang.String fetch(java.lang.String url, int connectTimeout, int readTimeout)
          Fetches page contents from a string URL via a GET-type request with a max-timeout of 'connectionTimeout' milliseconds
 java.lang.String fetch(java.net.URL url)
          Fetches page contents from a string URL via a GET-type request.
 java.awt.Image fetchImage(java.lang.String url)
          Fetches an Image from a string URL.
 java.lang.String[] fetchLinks(java.lang.String url)
          Returns all tags of the format ... as a String array, one element per link on the page
 java.lang.String[] fetchLinkText(java.lang.String url)
          Returns the text found within each link, e.g., of the format: text, as a String array, one element per link on the page
 processing.core.PImage fetchPImage(processing.core.PApplet pApplet, java.lang.String url)
          Fetches an Image from a string URL and converts it to a processing.core.PImage
 java.lang.String getUserAgent()
           
 java.lang.String post(java.lang.String url, java.util.Map keyValuePairs)
          Fetches page contents from the specified URL via a POST request using the String values specified in 'keyValuePairs'.
 java.lang.String post(java.net.URL url, java.util.Map keyValuePairs)
          Fetches page contents from the specified URL via a POST request using the String values specified in 'keyValuePairs'.
 void setUserAgent(java.lang.String userAgent)
           
 

Method Detail

getUserAgent

java.lang.String getUserAgent()

setUserAgent

void setUserAgent(java.lang.String userAgent)

fetchImage

java.awt.Image fetchImage(java.lang.String url)
Fetches an Image from a string URL.


fetchPImage

processing.core.PImage fetchPImage(processing.core.PApplet pApplet,
                                   java.lang.String url)
Fetches an Image from a string URL and converts it to a processing.core.PImage


fetch

java.lang.String fetch(java.lang.String url,
                       int connectTimeout,
                       int readTimeout)
Fetches page contents from a string URL via a GET-type request with a max-timeout of 'connectionTimeout' milliseconds


post

java.lang.String post(java.lang.String url,
                      java.util.Map keyValuePairs)
Fetches page contents from the specified URL via a POST request using the String values specified in 'keyValuePairs'.


post

java.lang.String post(java.net.URL url,
                      java.util.Map keyValuePairs)
Fetches page contents from the specified URL via a POST request using the String values specified in 'keyValuePairs'.


customParse

void customParse(java.lang.String url,
                 javax.swing.text.html.HTMLEditorKit.ParserCallback parserCallback)
Returns the contents of the URL (generally a text/HTML page) after executing the callbacks in the ParserCallback object.


fetch

java.lang.String fetch(java.lang.String url)
Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.


fetch

java.lang.String fetch(java.lang.String url,
                       boolean stripTags)
Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.


fetch

java.lang.String fetch(java.lang.String url,
                       boolean stripTags,
                       int connectionTimeout)
Fetches the contents of the URL (generally a text/HTML page) with all HTML tags removed as specified by the stripTags flag.


fetchLinkText

java.lang.String[] fetchLinkText(java.lang.String url)
Returns the text found within each link, e.g., of the format: text, as a String array, one element per link on the page


fetchLinks

java.lang.String[] fetchLinks(java.lang.String url)
Returns all tags of the format ... as a String array, one element per link on the page


fetch

java.lang.String fetch(java.net.URL url)
Fetches page contents from a string URL via a GET-type request.