Java tutorial
//package com.java2s; import java.io.IOException; import java.io.InputStream; import android.util.Log; public class Main { private static void closeInputStream(InputStream in) { if (null != in) { try { in.close(); } catch (IOException e) { Log.e("BitMapUtil", "closeInputStream==" + e.toString()); } } } }