|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.datamanager.simpleton.WebConnection
Field Summary | |
static String |
URL_DELIMITERS
|
Method Summary | |
static WebConnection |
getConnection()
|
String |
getContents(URL url)
This method takes a URL and will return a String that is its contents. |
protected InputStream |
getInputStream(URL url)
This method will take a URL and get an InputStream from it. |
protected String |
getString(InputStream inputStream)
Take an InputStream and read its contents into a String. |
Vector |
getURLs(InputStream stream)
This method takes an InputStream, and parses out all the URLs located within that InputStream. |
Vector |
getURLs(String string)
Find all isolated URLs in the given string and return them in a Vector |
protected boolean |
isURL(String string)
Determine whether the given string looks like a url. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String URL_DELIMITERS
Method Detail |
public static WebConnection getConnection()
public String getContents(URL url) throws IOException
url
- The URL object to get the contents of.
IOException
protected InputStream getInputStream(URL url) throws IOException
url
- The URL from which to get the InputStream.
IOException
protected String getString(InputStream inputStream) throws IOException
inputStream
- The Stream from which to get the String.
IOException
public Vector getURLs(String string) throws MalformedURLException
MalformedURLException
public Vector getURLs(InputStream stream)
stream
- An InputStream out of which to parse URLs.
protected boolean isURL(String string)
string
- A String that might be a url.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |