public static void safeClose(OutputStream out){
  try {
    if (out != null)     out.close();
  }
 catch (  IOException e) {
  }
}

public static void safeClose ( OutputStream out ) { try { if ( out != null ) out . close ( ) ; } catch ( IOException e ) { } }
closes a stream and ignores any resulting exception .
