Package com.intellij.util.io
Class URLUtil
- java.lang.Object
-
- com.intellij.util.io.URLUtil
-
public class URLUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStreamopenResourceStream(URL url)static InputStreamopenStream(URL url)Opens a url stream.static StringunescapePercentSequences(String s)
-
-
-
Method Detail
-
openStream
@NotNull public static InputStream openStream(URL url) throws IOException
Opens a url stream. The semantics is the sames asURL.openStream(). The separate method is needed, since jar URLs open jars via JarFactory and thus keep them mapped into memory.- Throws:
IOException
-
openResourceStream
@NotNull public static InputStream openResourceStream(URL url) throws IOException
- Throws:
IOException
-
-