if (compareBeforeWrite) {
final Checksum chksm = getChecksum();
if (line.data != null && object.size() == line.data.remaining()) {
final int n = line.data.remaining();
chksm.update(line.data);
line.data.rewind();
final byte[] hash = chksm.getChecksum();
object.write(line.data);
line.data.flip();