public void seal() throws IOException {
            outputStream.write(1);
            outputStream.seal();
        }
Must be called at the end of the stream of input symbols, otherwise the output data
cannot be decoded properly.
indexr-segment/src/main/java/io/indexr/compress/ArthmeticCoder.java