Constructor and Description |
---|
URLUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
read(URL url,
int connectTimeout,
int readTimeout,
int sizeLimit)
Reads the content of the specified URL.
|
public URLUtils()
public static String read(URL url, int connectTimeout, int readTimeout, int sizeLimit) throws IOException
url
- The URL content. Must not be null
.connectTimeout
- The URL connection timeout, in milliseconds.
If zero no (infinite) timeout.readTimeout
- The URL read timeout, in milliseconds. If zero
no (infinite) timeout.sizeLimit
- The read size limit, in bytes. If negative no
limit.IOException
- If the URL content couldn't be read.Copyright © 2016 Connect2id Ltd.. All rights reserved.