public class URLAccess
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
errorMessage
The reason why the URL was invalid.
|
java.io.InputStream |
inputStream
Access to the data at the URL, if the URL was valid.
|
java.net.URL |
url
The resolved URL, if urlLocation was valid.
|
java.lang.String |
urlLocation
The given URL string given to doURLAccess().
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Close the connection, but keep all the String
information about the connection.
|
void |
dispose()
Free up any resources used, immediately.
|
static URLAccess |
doURLAccess(java.lang.String urlLocation)
Simple utility method to check if a URL is valid.
|
public java.lang.String urlLocation
public java.net.URL url
public java.io.InputStream inputStream
public java.lang.String errorMessage
public static URLAccess doURLAccess(java.lang.String urlLocation)
urlLocation - public void dispose()
public void closeConnection()