public final class URLStreamer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
URLStreamer.Credentials |
static class |
URLStreamer.HttpHost |
Modifier and Type | Method and Description |
---|---|
static InputStream |
stream(HttpURL url)
Streams URL content.
|
static InputStream |
stream(HttpURL url,
URLStreamer.Credentials creds)
Streams URL content.
|
static InputStream |
stream(HttpURL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content.
|
static InputStream |
stream(HttpURL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content.
|
static InputStream |
stream(String url)
Streams URL content.
|
static InputStream |
stream(String url,
URLStreamer.Credentials creds)
Streams URL content.
|
static InputStream |
stream(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content.
|
static InputStream |
stream(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content.
|
static InputStream |
stream(URL url)
Streams URL content.
|
static InputStream |
stream(URL url,
URLStreamer.Credentials creds)
Streams URL content.
|
static InputStream |
stream(URL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content.
|
static InputStream |
stream(URL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content.
|
static String |
streamToString(HttpURL url)
Streams URL content to a String.
|
static String |
streamToString(HttpURL url,
URLStreamer.Credentials creds)
Streams URL content to a String.
|
static String |
streamToString(HttpURL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content to a String.
|
static String |
streamToString(HttpURL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content to a String.
|
static String |
streamToString(String url)
Streams URL content to a String.
|
static String |
streamToString(String url,
URLStreamer.Credentials creds)
Streams URL content to a String.
|
static String |
streamToString(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content to a String using UTF-8 character encoding.
|
static String |
streamToString(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
String charEncoding)
Streams URL content to a String.
|
static String |
streamToString(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content to a String using UTF-8 character encoding.
|
static String |
streamToString(String url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds,
String charEncoding)
Streams URL content to a String.
|
static String |
streamToString(URL url)
Streams URL content to a String.
|
static String |
streamToString(URL url,
URLStreamer.Credentials creds)
Streams URL content to a String.
|
static String |
streamToString(URL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy)
Streams URL content to a String.
|
static String |
streamToString(URL url,
URLStreamer.Credentials creds,
URLStreamer.HttpHost proxy,
URLStreamer.Credentials proxyCreds)
Streams URL content to a String.
|
public static InputStream stream(String url)
url
- the URL to streampublic static InputStream stream(URL url)
url
- the URL to streampublic static InputStream stream(HttpURL url)
url
- the URL to streampublic static InputStream stream(String url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static InputStream stream(URL url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static InputStream stream(HttpURL url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static InputStream stream(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static InputStream stream(URL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static InputStream stream(HttpURL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static InputStream stream(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static InputStream stream(URL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static InputStream stream(HttpURL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static String streamToString(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static String streamToString(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, String charEncoding)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLcharEncoding
- character encodingpublic static String streamToString(URL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static String streamToString(HttpURL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLpublic static String streamToString(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static String streamToString(String url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds, String charEncoding)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxycharEncoding
- character encodingpublic static String streamToString(URL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static String streamToString(HttpURL url, URLStreamer.Credentials creds, URLStreamer.HttpHost proxy, URLStreamer.Credentials proxyCreds)
url
- the URL to streamcreds
- credentials for a protected URLproxy
- proxy to use to stream the URLproxyCreds
- credentials to access the proxypublic static String streamToString(String url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static String streamToString(URL url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static String streamToString(HttpURL url, URLStreamer.Credentials creds)
url
- the URL to streamcreds
- credentials for a protected URLpublic static String streamToString(String url)
url
- the URL to streampublic static String streamToString(URL url)
url
- the URL to streamCopyright © 2008–2021 Norconex Inc.. All rights reserved.