Package org.zkoss.io
Class URLReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.InputStreamReader
-
- org.zkoss.io.URLReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class URLReader extends java.io.InputStreamReader
Convenience class for reading character files.- Since:
- 3.0.8
- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description URLReader(java.net.URL url, java.lang.String charset)
Creates a new FileReader, given the resource URL to read from.
-
-
-
Constructor Detail
-
URLReader
public URLReader(java.net.URL url, java.lang.String charset) throws java.io.IOException
Creates a new FileReader, given the resource URL to read from.- Parameters:
url
- the URL of the resource to read- Throws:
java.io.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.java.io.IOException
-
-