You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,9 +83,20 @@ Stream-based compressor/decompressor `SnappyOutputStream`/`SnappyInputStream` ar
83
83
* See also [Javadoc API](https://oss.sonatype.org/service/local/repositories/releases/archive/org/xerial/snappy/snappy-java/1.1.3-M1/snappy-java-1.1.3-M1-javadoc.jar/!/index.html)
84
84
85
85
#### Compatibility Notes
86
-
*`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 data format compatibility matrix:
86
+
87
+
The original Snappy format definition did not define a file format. It later added
88
+
a "framing" format to define a file format, but by this point major software was
89
+
already using an industry standard instead -- represented in this library by the
90
+
`SnappyOutputStream` and `SnappyInputStream` methods.
91
+
92
+
For interoperability with other libraries, check that compatible formats are used.
93
+
Note that not all libraries support all variants.
94
+
95
+
*`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`.
87
96
*`SnappyHadoopCompatibleOutputStream` does not emit a file header but write out the current block size as a preemble to each block
0 commit comments