Guest User

Untitled

a guest
Jan 18th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. URL url = new URL("https://www.android.com/");
  2. HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
  3. try {
  4. InputStream in = new BufferedInputStream(urlConnection.getInputStream());
  5. readStream(in);
  6. } finally {
  7. urlConnection.disconnect();
  8. }
Add Comment
Please, Sign In to add comment