Here you can find the source of closeQuietly(HttpURLConnection connection, Reader reader)
public static void closeQuietly(HttpURLConnection connection, Reader reader)
//package com.java2s; //License from project: Apache License import java.io.*; import java.net.HttpURLConnection; public class Main { public static void closeQuietly(HttpURLConnection connection, Reader reader) {/*from w ww . j a v a 2 s.co m*/ if (connection != null) { try { connection.disconnect(); } catch (Exception ignored) { } } try { if (reader != null) { reader.close(); } } catch (IOException ex) { // Ignore } } }