public class URLStreams
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.io.InputStream |
openUncachedStream(java.net.URL url)
Opens an
InputStream reading from the given URL without
caching the stream. |
public static java.io.InputStream openUncachedStream(java.net.URL url) throws java.io.IOException
InputStream
reading from the given URL without
caching the stream. This prevents file descriptor leaks when reading
from file system URLs.url
- the URL to connect tojava.io.IOException