// -----------------------------------------------------
// Append the second part of the original file
// logger.finer("Appending the second part of the original file...");
long skipLength = toByte - fromByte;
// logger.finer("Skipping '" + skipLength + "' bytes in file '" + file + "'...");
long skippedBytes = in.skip(skipLength);
if (skippedBytes == -1) {
// logger.finer("End of file reached while skipping. No second part of original file to append.");
} else {
// logger.finest( "Read/Write the second part of the original file: starting from byte number '" + fromByte + "', file is '" + file + "'...");
buf = new byte[4096];