Esempio n. 1
0
 @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));
 }
Esempio n. 3
0
 @Nullable
 public static InputStream getInputStream(@Nonnull final URL aURL) {
   return URLUtils.getInputStream(
       aURL, DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT, null, (IWrapper<IOException>) null);
 }
Esempio n. 4
0
 /**
  * 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;
 }
Esempio n. 5
0
 @Nullable
 public URI getAsURI() {
   return URLUtils.getAsURI(m_aURL);
 }