class SingleStreamDiffScriptWriter implements DiffScriptWriter {

    @Override
    public void flush() throws IOException {
        Preconditions.checkState(!(mBufferSize != 0 && mReusableChunk != null));
        if (mBufferSize != 0) {
            writeByteBuffer();
        }
        if (mReusableChunk != null) {
            writeReusableChunk();
        }
        mOutputStream.flush();
    }

    public  SingleStreamDiffScriptWriter(OutputStream outputStream, int maxNewByteChunkSize);

}