|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.util.URLUtil
public class URLUtil
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. |
static boolean |
isValid(String urlCandidate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
public static boolean isValid(String urlCandidate)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |