Code example for Closeable

Methods: close

0
     * @param stream The stream to close. 
     */ 
    public static void closeStream(Closeable stream) {
        if (stream != null) {
            try { 
                stream.close();
            } catch (IOException e) {
                android.util.Log.e(LOG_TAG, "Could not close stream", e);
            } 
        } 
    } 
}