public boolean isContentChecksumSet() {
            return contentChecksum == 1;
        }
A simple state check to ensure the stream is still open.
clients/src/main/java/org/apache/kafka/common/compress/Lz4BlockOutputStream.java