|
RichFaces Core API 4.2.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ajax4jsf.resource.util.URLToStreamHelper
public final class URLToStreamHelper
Utility class to solve JAR locking issue using URLConnection.setUseCaches(boolean)
method. Contains one utility
method that gets InputStream
from URL
with caching disabled.
Created 07.02.2008
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InputStream urlToStream(URL url) throws IOException
InputStream
corresponding to argument URL
but with caching disabled
url
- URL
of the resource
InputStream
instance or null
IOException
public static InputStream urlToStreamSafe(URL url)
urlToStream(URL)
method that doesn't throw IOException, but silently ignores them
url
-
|
RichFaces Core API 4.2.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |