public final class UrlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getFileUriString(String filename)
This method gets uri string from a file.
|
static URL |
getFinalURL(URL initialUrl)
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
This method makes the conversion of this library from the JAVA 2 platform to a JDK1.1.x-version easier.
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 initialUrl) throws IOException
initialUrl
- an initial URL
IOException
public static String getFileUriString(String filename) throws MalformedURLException
filename
- a given filename
MalformedURLException
Copyright © 1998–2018 iText Group NV. All rights reserved.