+ channel = fileLock.getRaChannel().position(0);
+ long ntrans = 0;
+ while (ntrans<sourceln)
+ {
+ long tlen;
+ ntrans+= tlen = tos.getChannel().transferFrom(channel, ntrans,
+ sourceln);
+ if (log.isDebugEnabled())
+ {
+ log.debug
+ ("Transferred "+tlen+" out of "+sourceln+" bytes");
+ }
+ }