public class ReaderFactory
extends java.lang.Object
| Constructor and Description |
|---|
ReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
create(java.net.URL url)
Create a Reader for the given URL.
|
java.io.InputStream |
openStream(java.net.URL url)
Open an InputStream for the given URL.
|
java.io.InputStream |
openStream(java.net.URL baseURL,
java.lang.String urlStr,
java.lang.String relativeUrlStr)
Open an InputStream for the given URL.
|
public java.io.InputStream openStream(java.net.URL url)
throws java.io.IOException
url - the url, not nulljava.io.IOException - If any I/O error occur on reading the URL.public java.io.InputStream openStream(java.net.URL baseURL,
java.lang.String urlStr,
java.lang.String relativeUrlStr)
throws java.io.IOException
baseURL - the URL of the top less fileurlStr - the absolute or relative URL that should be openrelativeUrlStr - relative URL of the less scriptjava.io.IOException - If any I/O error occur on reading the URL.public java.io.Reader create(java.net.URL url)
throws java.io.IOException
url - the url, not nulljava.io.IOException - If any I/O error occur on reading the URL.