public final class URLToStreamHelper extends Object
URLConnection.setUseCaches(boolean) method. Contains one utility
method that gets InputStream from URL with caching disabled.
Created 07.02.2008| Modifier and Type | Method and Description |
|---|---|
static InputStream |
urlToStream(URL url)
Returns
InputStream corresponding to argument URL but with caching disabled |
static InputStream |
urlToStreamSafe(URL url)
Variant of
urlToStream(URL) method that doesn't throw IOException, but silently ignores them |
public static InputStream urlToStream(URL url) throws IOException
InputStream corresponding to argument URL but with caching disabledurl - URL of the resourceInputStream instance or nullIOExceptionpublic static InputStream urlToStreamSafe(URL url)
urlToStream(URL) method that doesn't throw IOException, but silently ignores themurl - InputStream instance or nullCopyright © 2016 JBoss by Red Hat. All Rights Reserved.