@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="OBL_UNSATISFIED_OBLIGATION") public static void cp(String src,String dst) throws Exception {
  FileInputStream srcfis=new FileInputStream(src);
  FileOutputStream dstfos=new FileOutputStream(dst);
  try {
    cpStream(srcfis,dstfos);
  }
  finally {
    if (srcfis != null)     srcfis.close();
    if (dstfos != null)     dstfos.close();
  }
}

@ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = "OBL_UNSATISFIED_OBLIGATION" ) public static void cp ( String src , String dst ) throws Exception { FileInputStream srcfis = new FileInputStream ( src ) ; FileOutputStream dstfos = new FileOutputStream ( dst ) ; try { cpStream ( srcfis , dstfos ) ; } finally { if ( srcfis != null ) srcfis . close ( ) ; if ( dstfos != null ) dstfos . close ( ) ; } }
copy a binary file
