Here you can find the source of close(java.io.Closeable in)
Parameter | Description |
---|---|
in | a parameter |
public static void close(java.io.Closeable in)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w .ja v a 2 s. c om*/ * Closes a stream, handling all exceptions * @param in */ public static void close(java.io.Closeable in) { if (in == null) return; try { in.close(); } catch (Exception e) { // do nothing } } }