MCPcopy Index your code
hub / github.com/apache/commons-io / close

Method close

src/main/java/org/apache/commons/io/IOUtils.java:187–191  ·  view source on GitHub ↗

Closes a URLConnection. @param conn the connection to close. @since 2.4

(final URLConnection conn)

Source from the content-addressed store, hash-verified

185 * @since 2.4
186 */
187 public static void close(final URLConnection conn) {
188 if (conn instanceof HttpURLConnection) {
189 ((HttpURLConnection) conn).disconnect();
190 }
191 }
192
193 /**
194 * Closes an <code>Reader</code> unconditionally.

Callers 10

toByteArrayMethod · 0.95
copyFileMethod · 0.45
copyToFileMethod · 0.45
writeStringToFileMethod · 0.45
writeByteArrayToFileMethod · 0.45
writeLinesMethod · 0.45
IOUtilsClass · 0.45
closeQuietlyMethod · 0.45
toStringMethod · 0.45

Calls

no outgoing calls

Tested by 1