|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.util.URLUtil
public class URLUtil
| Field Summary | |
|---|---|
static boolean |
STOP
|
| Constructor Summary | |
|---|---|
URLUtil()
|
|
| Method Summary | |
|---|---|
static void |
download(String urlString,
File downloadFile,
TaskMonitor taskMonitor)
Download the file specified by the url string to the given File object |
static String |
download(URL source)
Get the the contents of the given URL as a string. |
static InputStream |
getBasicInputStream(URL source)
Obtain an InputStream for a given URL. |
static InputStream |
getInputStream(URL source)
Gets the an input stream given a URL. |
static URLConnection |
getURLConnection(URL source)
Obtain a URLConnection for a given URL. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean STOP
| Constructor Detail |
|---|
public URLUtil()
| Method Detail |
|---|
public static InputStream getInputStream(URL source)
throws IOException
source - URL source for a zip or jar file.
IOException
public static InputStream getBasicInputStream(URL source)
throws IOException
source - the non-null URL from which to obtain an InputStream.
IllegalStateException - if source is null.
IOException - if a connection to the URL can't be opened or a problem
occurs with the InputStream.
public static URLConnection getURLConnection(URL source)
throws IOException
source - the non-null URL from which to obtain a URLConnection.
IllegalStateException - if source is null.
IOException - if a connection to the URL can't be opened.
public static void download(String urlString,
File downloadFile,
TaskMonitor taskMonitor)
throws IOException
urlString - downloadFile - taskMonitor -
IOException
public static String download(URL source)
throws IOException
source -
IOException
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||