From 6136702f0ac388b4708b56bea8d6ce7ab3c11281 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Fri, 26 Dec 2014 11:21:02 +0900 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0de3ae..e475f4f 100755 --- a/README.md +++ b/README.md @@ -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` | | --------------- |:-------------------:|:------------------:|:-----------------------:|