writeFooter

Writes a codec footer, which records both a checksum algorithm ID and a checksum. This footer can be parsed and validated with .checkFooter.

CodecFooter --> Magic,AlgorithmID,Checksum

  • Magic -->Uint32. This identifies the start of the footer. It is always {@value #FOOTER_MAGIC}.

  • AlgorithmID -->Uint32. This indicates the checksum algorithm used. Currently this is always 0, for zlib-crc32.

  • Checksum -->Uint64. The actual checksum value for all previous bytes in the stream, including the bytes from Magic and AlgorithmID.

Parameters

out

Output stream

Throws

IOException

If there is an I/O error writing to the underlying medium.