org.zkoss.io
Class URLReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
org.zkoss.io.URLReader
- All Implemented Interfaces:
- Closeable, Readable
public class URLReader
- extends InputStreamReader
Convenience class for reading character files.
- Since:
- 3.0.8
- Author:
- tomyeh
|
Constructor Summary |
URLReader(URL url,
String charset)
Creates a new FileReader, given the resource URL to read from. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLReader
public URLReader(URL url,
String charset)
throws IOException
- Creates a new FileReader, given the resource URL to read from.
- Parameters:
url - the URL of the resource to read
- Throws:
FileNotFoundException - if the resource does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for reading.
IOException
Copyright © 2011. All Rights Reserved.