{
in = new FileInputStream(src);
out = new FileOutputStream(target);
FileChannel inCh = in.getChannel();
FileChannel outCh = out.getChannel();
if (outCh.transferFrom(inCh, 0, src.length()) == src.length())
{
// adjust timestamp
target.setLastModified(src.lastModified());
flag = true;
}