[Java] Class URLStreams
- org.codehaus.groovy.util.URLStreams
public class URLStreams extends Object
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public static InputStream |
openUncachedStream(URL url) Opens an InputStream reading from the given URL without caching the stream. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
public static InputStream openUncachedStream(URL url)
Opens an InputStream reading from the given URL without caching the stream. This prevents file descriptor leaks when reading from file system URLs.
- Parameters:
-
url
- the URL to connect to
- Returns:
- an input stream reading from the URL connection
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/URLStreams.html