public class CompressorUtils extends Object
BlockCompressor
.Modifier and Type | Field and Description |
---|---|
static int |
HEADER_LENGTH
We put two integers before each compressed block, the first integer represents the compressed
length of the block, and the second one represents the original length of the block.
|
Constructor and Description |
---|
CompressorUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
readIntLE(byte[] buf,
int i) |
static void |
validateLength(int compressedLen,
int originalLen) |
static void |
writeIntLE(int i,
byte[] buf,
int offset) |
public static final int HEADER_LENGTH
public static void writeIntLE(int i, byte[] buf, int offset)
public static int readIntLE(byte[] buf, int i)
public static void validateLength(int compressedLen, int originalLen) throws BufferDecompressionException
BufferDecompressionException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.