com.norconex.commons.lang.url
Class URLStreamer

java.lang.Object
  extended by com.norconex.commons.lang.url.URLStreamer

public final class URLStreamer
extends Object

Provides a quick and easy way to stream a URL.

Author:
Pascal Essiembre

Method Summary
static InputStream stream(HttpURL url)
           
static InputStream stream(HttpURL url, org.apache.http.auth.Credentials creds)
           
static InputStream stream(HttpURL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static InputStream stream(HttpURL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
static InputStream stream(String url)
           
static InputStream stream(String url, org.apache.http.auth.Credentials creds)
           
static InputStream stream(String url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static InputStream stream(String url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
static InputStream stream(URL url)
           
static InputStream stream(URL url, org.apache.http.auth.Credentials creds)
           
static InputStream stream(URL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static InputStream stream(URL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
static String streamToString(HttpURL url, org.apache.http.auth.Credentials creds)
           
static String streamToString(HttpURL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static String streamToString(HttpURL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
static String streamToString(String url, org.apache.http.auth.Credentials creds)
           
static String streamToString(String url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static String streamToString(String url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
static String streamToString(URL url, org.apache.http.auth.Credentials creds)
           
static String streamToString(URL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy)
           
static String streamToString(URL url, org.apache.http.auth.Credentials creds, org.apache.http.HttpHost proxy, org.apache.http.auth.Credentials proxyCreds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stream

public static InputStream stream(String url)

stream

public static InputStream stream(URL url)

stream

public static InputStream stream(HttpURL url)

stream

public static InputStream stream(String url,
                                 org.apache.http.auth.Credentials creds)

stream

public static InputStream stream(URL url,
                                 org.apache.http.auth.Credentials creds)

stream

public static InputStream stream(HttpURL url,
                                 org.apache.http.auth.Credentials creds)

stream

public static InputStream stream(String url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy)

stream

public static InputStream stream(URL url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy)

stream

public static InputStream stream(HttpURL url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy)

stream

public static InputStream stream(String url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy,
                                 org.apache.http.auth.Credentials proxyCreds)

stream

public static InputStream stream(URL url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy,
                                 org.apache.http.auth.Credentials proxyCreds)

stream

public static InputStream stream(HttpURL url,
                                 org.apache.http.auth.Credentials creds,
                                 org.apache.http.HttpHost proxy,
                                 org.apache.http.auth.Credentials proxyCreds)

streamToString

public static String streamToString(String url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy)

streamToString

public static String streamToString(URL url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy)

streamToString

public static String streamToString(HttpURL url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy)

streamToString

public static String streamToString(String url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy,
                                    org.apache.http.auth.Credentials proxyCreds)

streamToString

public static String streamToString(URL url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy,
                                    org.apache.http.auth.Credentials proxyCreds)

streamToString

public static String streamToString(HttpURL url,
                                    org.apache.http.auth.Credentials creds,
                                    org.apache.http.HttpHost proxy,
                                    org.apache.http.auth.Credentials proxyCreds)

streamToString

public static String streamToString(String url,
                                    org.apache.http.auth.Credentials creds)

streamToString

public static String streamToString(URL url,
                                    org.apache.http.auth.Credentials creds)

streamToString

public static String streamToString(HttpURL url,
                                    org.apache.http.auth.Credentials creds)


Copyright © 2008-2013 Norconex Inc.. All Rights Reserved.