public final class URLUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
optimizedStreamFromURL(java.net.URL url)
Method that tries to get optimal stream to read from the specified
URL.
|
static java.net.URL |
urlFromCurrentDir()
Method that tries to create and return URL that denotes current
working directory.
|
static java.net.URL |
urlFromSystemId(java.lang.String sysId)
Method that tries to figure out how to create valid URL from a system
id, without additional contextual information.
|
static java.net.URL |
urlFromSystemId(java.lang.String sysId,
java.net.URL ctxt) |
public static java.net.URL urlFromSystemId(java.lang.String sysId)
throws java.io.IOException
java.io.IOExceptionpublic static java.net.URL urlFromSystemId(java.lang.String sysId,
java.net.URL ctxt)
throws java.io.IOException
java.io.IOExceptionpublic static java.net.URL urlFromCurrentDir()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static java.io.InputStream optimizedStreamFromURL(java.net.URL url)
throws java.io.IOException
java.io.IOException