|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.reader.ReaderUtilities
public class ReaderUtilities
Reader related utility methods.
Constructor Summary | |
---|---|
ReaderUtilities()
|
Method Summary | |
---|---|
static java.lang.String |
getHTMLAsString(java.net.URL url)
Gets the contents of the url as a String. |
static java.net.URL |
getRedirectedURL(java.lang.String urlString)
Tests the specified URL for redirection and if its been redirected then follows the redirect until it finds a non 301 URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderUtilities()
Method Detail |
---|
public static java.lang.String getHTMLAsString(java.net.URL url) throws java.io.IOException
url
- the url whose content we get
java.io.IOException
- if there is an error getting the url contentpublic static java.net.URL getRedirectedURL(java.lang.String urlString) throws java.io.IOException
urlString
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |