Java URL to InputStream openURLStream(String in)

Here you can find the source of openURLStream(String in)

Description

open URL Stream

License

Apache License

Declaration

public static InputStream openURLStream(String in) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.URL;

import java.io.*;

public class Main {
    public static InputStream openURLStream(String in) throws IOException {
        URL inUrl = new URL(in);
        InputStream ret = inUrl.openStream();
        return (ret);
    }/*from   www.j  av a2s. c  o  m*/
}

Related

  1. openStream(URL url)
  2. openStream(URL url)
  3. openStream(URL url, int connectTimeout, int readTimeout)
  4. openStreamUseCache(URL url)
  5. openURL(String url)