Package org.zkoss.io

Class URLReader

All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class URLReader extends InputStreamReader
Convenience class for reading character files.
Since:
3.0.8
Author:
tomyeh
  • Constructor Details

    • 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