A fast compression/decompression library for Java, providing bindings to Google's Snappy C++ library.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Compress and decompress a string using Snappy.
import org.xerial.snappy.Snappy;
public class Example {
public static void main(String[] args) throws Exception {
String input = "Hello, Snappy!";
byte[] compressed = Snappy.compress(input.getBytes());
byte[] decompressed = Snappy.uncompress(compressed);
System.out.println(new String(decompressed));
}
}
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.