Package org.codehaus.groovy.util
Class URLStreams
java.lang.Object
org.codehaus.groovy.util.URLStreams
public class URLStreams
extends java.lang.Object
- 
Method SummaryModifier and Type Method Description static java.io.InputStreamopenUncachedStream(java.net.URL url)Opens anInputStreamreading from the given URL without caching the stream.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Method Details- 
openUncachedStreampublic static java.io.InputStream openUncachedStream(java.net.URL url) throws java.io.IOExceptionOpens anInputStreamreading 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
- Throws:
- java.io.IOException
 
 
-