public class ReadFromUrl extends Object
| Constructor and Description |
|---|
ReadFromUrl() |
| Modifier and Type | Method and Description |
|---|---|
static long |
copyUrlB(String urlString,
OutputStream out,
int bufferSize)
copy contents of URL to output stream, specify internal buffer size.
|
static InputStream |
getInputStreamFromUrl(String urlString)
get input stream from URL
|
static String |
readURLcontents(String urlString)
Read the contents from the named URL and place into a String,
with any error messages put in the return String.
|
public static long copyUrlB(String urlString, OutputStream out, int bufferSize) throws IOException
urlString - copy the contents of this URLout - copy to this stream. If null, throw bytes awaybufferSize - internal buffer size.IOException - on io errorpublic static InputStream getInputStreamFromUrl(String urlString) throws IOException
urlString - URLIOException - on io error