public static void closeStream ( final Closeable stream ) { if ( stream != null ) { try { stream . close ( ) ; } catch ( final IOException e ) { //don't use android classes here, since this class is used outside of android e . printStackTrace ( ) ; } } }
Closes the specified stream .