@Nullable public InputStream getInputStream( final int nConnectTimeoutMS, final int nReadTimeoutMS, @Nullable final INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier, @Nullable final IWrapper<IOException> aExceptionHolder) { return URLUtils.getInputStream( m_aURL, nConnectTimeoutMS, nReadTimeoutMS, aConnectionModifier, aExceptionHolder); }
@Nonnull public static ResourceStreamSource create(@Nonnull final URI aURI) { return create(URLUtils.getAsURL(aURI)); }
@Nullable public static InputStream getInputStream(@Nonnull final URL aURL) { return URLUtils.getInputStream( aURL, DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT, null, (IWrapper<IOException>) null); }
/** * Check if the passed resource name is an explicit URL resource. * * @param sName The name to check. May be <code>null</code>. * @return <code>true</code> if the passed name is an explicit URL resource. */ public static boolean isExplicitURLResource(@Nullable final String sName) { return URLUtils.getAsURL(sName) != null; }
@Nullable public URI getAsURI() { return URLUtils.getAsURI(m_aURL); }