Java URL Load read(String url)

Here you can find the source of read(String url)

Description

read

License

Open Source License

Declaration

public static BufferedReader read(String url) throws Exception 

Method Source Code


//package com.java2s;
import java.io.BufferedReader;
import java.io.InputStreamReader;

import java.net.URL;

public class Main {
    public static BufferedReader read(String url) throws Exception {
        return new BufferedReader(new InputStreamReader(new URL(url).openStream()));
    }/*ww w .j  a  va 2s. co  m*/
}

Related

  1. loadURL(URL url)
  2. loadURL(URL url)
  3. loadUrlIntoByteArray(String urlString)
  4. loadUrlToList(URL iUrl)
  5. loadURLToString(String url, String EOL)
  6. read(URL file)
  7. read(URL url, String charsetName)
  8. readAsString(URL url)
  9. readAsStringUTF8(URL url)