public final class UrlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static URL |
getFinalURL(URL url)
This method gets the last redirected url.
|
static InputStream |
openStream(URL url) |
static URI |
toNormalizedURI(File file)
This method makes a normalized URI from a given file.
|
static URI |
toNormalizedURI(String filename)
This method makes a normalized URI from a given filename.
|
static URL |
toURL(String filename)
This method makes a valid URL from a given filename.
|
public static URL toURL(String filename) throws MalformedURLException
filename
- a given filename
MalformedURLException
public static URI toNormalizedURI(String filename)
filename
- a given filename
public static URI toNormalizedURI(File file)
file
- a given filename
public static InputStream openStream(URL url) throws IOException
IOException
public static URL getFinalURL(URL url) throws IOException
url
- an initial URL
IOException
Copyright © 1998–2017 iText Group NV. All rights reserved.