List of utility methods to do File Copy
boolean | fileCopy(String sourceFile, String destinationFile) file Copy boolean resultado = true; try { File inFile = new File(sourceFile); File outFile = new File(destinationFile); FileInputStream in = new FileInputStream(inFile); FileOutputStream out = new FileOutputStream(outFile); BufferedInputStream bis = new BufferedInputStream(in); BufferedOutputStream bos = new BufferedOutputStream(out); ... |
void | fileCopy(String sourcefile, String destinctionFile) file Copy fileCopy(new File(sourcefile), destinctionFile);
|
void | workaroundCopyFile(final File src, final File dest) workaround Copy File FileInputStream from = null; FileOutputStream to = null; try { from = new FileInputStream(src); to = new FileOutputStream(dest); byte[] buffer = new byte[4096]; int bytesRead; while ((bytesRead = from.read(buffer)) != -1) { ... |