Here you can find the source of close(InputStream is, OutputStream os)
private static void close(InputStream is, OutputStream os)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { private static void close(InputStream is, OutputStream os) { if (is != null) try { is.close();/*from www .j a v a2 s. c om*/ } catch (IOException e) { } if (os != null) try { os.close(); } catch (IOException e) { } } }