public class URLReader
extends java.lang.Object
Constructor and Description |
---|
URLReader() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
read(java.lang.String url)
Read from the given url
|
static java.lang.String |
read(java.lang.String url,
java.net.Proxy proxy)
Read from the given url, with specified proxy.
|
static java.lang.String |
read(java.lang.String url,
java.lang.String proxyHost,
int proxyPort)
Read from the given url, with specified proxyHost and proxyPort
|
public static java.lang.String read(java.lang.String url) throws java.lang.Exception
url
- a given urljava.lang.Exception
- if error occurspublic static java.lang.String read(java.lang.String url, java.lang.String proxyHost, int proxyPort) throws java.lang.Exception
url
- the given urlproxyHost
- proxy hostproxyPort
- proxy portjava.lang.Exception
- if error occurspublic static java.lang.String read(java.lang.String url, java.net.Proxy proxy) throws java.lang.Exception
url
- the given urlproxy
- proxyjava.lang.Exception
- if error occursCopyright © 2017. All Rights Reserved.