}
public void probe(byte[] input) {
LZFCodec codec = new LZFCodec();
byte[] compressed = codec.compress(input);
byte[] decompressed = codec.decompress(compressed);
ArrayAssert.assertEquals(input, decompressed);
float ratio = (float) compressed.length / (float) input.length;
System.out.println("Original: " + input.length + ", Compressed: " + compressed.length
+ ", Compression ratio: " + Float.toString(ratio * 100.0f));
}