Package org.zkoss.io
Class URLReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
org.zkoss.io.URLReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
Convenience class for reading character files.
- Since:
- 3.0.8
- Author:
- tomyeh
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, read, readyMethods inherited from class java.io.Reader
mark, markSupported, nullReader, read, reset, skip, transferTo
-
Constructor Details
-
URLReader
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
-