public void copyFile(String src,String dest)throws IOException {
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(src));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(dest));
byte[] bufff = new byte[1024*1024*1024];
for(int len =0;(len=bis.read(buff))!=-1;bos.wirte(buff,0,len));
bis.close();
bos.close();
}
|