Optimize SnappyOutputStream java doc

Add more information about output data format
This commit is contained in:
xuchuanyin 2018-01-23 15:23:18 +08:00 committed by GitHub
parent 118aa3e6d2
commit 0bdda0f23d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ import java.io.OutputStream;
* The output data format is:
* <ol>
* <li>snappy codec header defined in {@link SnappyCodec} (8 bytes)
* <li>codec version (4 bytes integer, at least 1) and compatible version (4 bytes integer)
* <li>compressed block 1 : a pair of (compressed data size [4 byte integer.
* Big-endian], compressed data...)
* <li>compressed block 2