public interface StreamUtil
Module: io-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>io-api</artifactId> </dependency>
Modifier and Type | Field and Description |
---|---|
static String |
URL_PATTERN |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(String source)
Gets the input stream from given a string.
|
InputStream |
getInputStream(URL source)
Gets the input stream from given
URL . |
URLConnection |
getURLConnection(URL source)
Obtain a
URLConnection for a given URL . |
static final String URL_PATTERN
InputStream getInputStream(String source) throws IOException
source
- The string from which to generate the InputStream.IOException
InputStream getInputStream(URL source) throws IOException
URL
.
Proxy will be used if available.source
- The URL from which to generate the InputStream.IOException
URLConnection getURLConnection(URL source) throws IOException
URLConnection
for a given URL
.
Proxy will be used if available.source
- The URL from which to generate the URLConnection.IOException
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.