@@ -0,0 +1,993 @@
+package org.apache.cassandra.io.util;%0A%0Aimport java.io.File;%0A%0Aimport org.apache.cassandra.io.sstable.Descriptor;%0A%0Apublic class ChecksummedSequentialWriter extends SequentialWriter%0A%7B%0A    private final SequentialWriter crcWriter;%0A    private final DataIntegrityMetadata.ChecksumWriter crcMetadata;%0A%0A    public ChecksummedSequentialWriter(File file, int bufferSize, boolean skipIOCache, File crcPath)%0A    %7B%0A        super(file, bufferSize, skipIOCache);%0A        crcWriter = new SequentialWriter(crcPath, 8 * 1024, true);%0A        crcMetadata = new DataIntegrityMetadata.ChecksumWriter(crcWriter.stream);%0A        crcMetadata.writeChunkSize(buffer.length);%0A    %7D%0A%0A    protected void flushData()%0A    %7B%0A        super.flushData();%0A        crcMetadata.append(buffer, 0, validBufferBytes);%0A    %7D%0A%0A    public void writeFullChecksum(Descriptor descriptor)%0A    %7B%0A        crcMetadata.writeFullChecksum(descriptor);%0A    %7D%0A%0A    public void close()%0A    %7B%0A        super.close();%0A        crcWriter.close();%0A    %7D%0A%7D%0A

add ChecksummedSequentialWriter