public class URLStreams extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
openUncachedStream(URL url)
Opens an
InputStream reading from the given URL without
caching the stream. |
public static InputStream openUncachedStream(URL url) throws 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 toIOException