Top Constructors Methods
org.codehaus.groovy.util

public Class URLStreams

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL, .URLConnection

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static InputStream

Returns:

an input stream reading from the URL connection
openUncachedStream
(URL
the URL to connect to
url
)

Opens an InputStream reading from the given URL without caching the stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

URLStreamsback to summary
private URLStreams()

Method Detail

openUncachedStreamback to summary
public static InputStream openUncachedStream(URL url) throws IOException

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:URL

the URL to connect to

Returns:InputStream

an input stream reading from the URL connection