public class UrlReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.net.URL |
_url
The _url.
|
Constructor and Description |
---|
UrlReader(java.lang.String urlString)
Instantiates a new url reader.
|
public UrlReader(java.lang.String urlString) throws java.net.MalformedURLException
urlString
- the url to accessjava.net.MalformedURLException
public java.lang.String read() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the argumentsjava.lang.Exception
- the exception