Here you can find the source of close(InputStream in, OutputStream out)
public static void close(InputStream in, OutputStream out)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Main { public static void close(InputStream in, OutputStream out) { try {//from ww w . j av a 2 s. co m if (in != null) { in.close(); } if (out != null) { out.close(); } } catch (IOException e) { e.printStackTrace(); } } }