Update README.md

This commit is contained in:
Taro L. Saito 2014-12-26 11:21:02 +09:00
parent fb8b14bc30
commit 6136702f0a
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ Stream-based compressor/decompressor `SnappyOutputStream`/`SnappyInputStream` ar
* See also [Javadoc API](https://oss.sonatype.org/service/local/repositories/releases/archive/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6-javadoc.jar/!/index.html)
#### Compatibility Notes
* `SnappyOutputStream` and `SnappyInputStream` use `(block size:int32)(compressed data)` format. You can read the result of `Snappy.compress` with `SnappyInputStream`, but you cannot read the compressed data from `SnappyOutputStream` with `Snappy.uncompress`. Here is the compatibility matrix of data foramt:
* `SnappyOutputStream` and `SnappyInputStream` use `[magic header:16 bytes]([block size:int32][compressed data:byte array])*` format. You can read the result of `Snappy.compress` with `SnappyInputStream`, but you cannot read the compressed data generated by `SnappyOutputStream` with `Snappy.uncompress`. Here is the compatibility matrix of data foramt:
| Write\Read | `Snappy.uncompress` | `SnappyInputStream` | `SnappyFramedInputStream` |
| --------------- |:-------------------:|:------------------:|:-----------------------:|