public class Lz4
extends java.lang.Object
Constructor and Description |
---|
Lz4() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(byte[] bytes) |
static byte[] |
compress(net.jpountz.lz4.LZ4Compressor compressor,
byte[] bytes) |
static void |
compressFile(java.nio.file.Path from,
java.nio.file.Path to) |
static int |
decodeUncompressedSize(byte[] bytes) |
static byte[] |
decompressFast(byte[] bytes) |
static byte[] |
decompressFast(net.jpountz.lz4.LZ4FastDecompressor decompressor,
byte[] bytes) |
static byte[] |
decompressFast(net.jpountz.lz4.LZ4FastDecompressor decompressor,
byte[] bytes,
int uncompressedSize) |
static void |
decompressFileFast(java.nio.file.Path from,
java.nio.file.Path to) |
static void |
decompressFileSafe(java.nio.file.Path from,
java.nio.file.Path to) |
static byte[] |
decompressSafe(byte[] bytes) |
static byte[] |
decompressSafe(net.jpountz.lz4.LZ4SafeDecompressor decompressor,
byte[] bytes) |
static byte[] |
decompressSafe(net.jpountz.lz4.LZ4SafeDecompressor decompressor,
byte[] bytes,
int uncompressedSize) |
static byte[] |
encodeUncompressedSize(int size) |
static net.jpountz.lz4.LZ4Factory |
getLz4Factory() |
static net.jpountz.lz4.LZ4Compressor |
getLz4FastCompressor() |
static net.jpountz.lz4.LZ4FastDecompressor |
getLz4FastDecompressor() |
static net.jpountz.lz4.LZ4Compressor |
getLz4HighCompressor() |
static net.jpountz.lz4.LZ4SafeDecompressor |
getLz4SafeDecompressor() |
public static net.jpountz.lz4.LZ4Factory getLz4Factory()
public static net.jpountz.lz4.LZ4Compressor getLz4HighCompressor()
public static net.jpountz.lz4.LZ4Compressor getLz4FastCompressor()
public static net.jpountz.lz4.LZ4FastDecompressor getLz4FastDecompressor()
public static net.jpountz.lz4.LZ4SafeDecompressor getLz4SafeDecompressor()
public static byte[] compress(byte[] bytes)
public static byte[] compress(net.jpountz.lz4.LZ4Compressor compressor, byte[] bytes)
public static void compressFile(java.nio.file.Path from, java.nio.file.Path to) throws java.io.IOException
java.io.IOException
public static void decompressFileFast(java.nio.file.Path from, java.nio.file.Path to) throws java.io.IOException
java.io.IOException
public static void decompressFileSafe(java.nio.file.Path from, java.nio.file.Path to) throws java.io.IOException
java.io.IOException
public static byte[] decompressFast(byte[] bytes)
public static byte[] decompressFast(net.jpountz.lz4.LZ4FastDecompressor decompressor, byte[] bytes)
public static byte[] decompressFast(net.jpountz.lz4.LZ4FastDecompressor decompressor, byte[] bytes, int uncompressedSize)
public static byte[] decompressSafe(byte[] bytes)
public static byte[] decompressSafe(net.jpountz.lz4.LZ4SafeDecompressor decompressor, byte[] bytes)
public static byte[] decompressSafe(net.jpountz.lz4.LZ4SafeDecompressor decompressor, byte[] bytes, int uncompressedSize)
public static int decodeUncompressedSize(byte[] bytes)
public static byte[] encodeUncompressedSize(int size)