public final class LowercaseAsciiCompression extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
compress(byte[] in,
int len,
byte[] tmp,
DataOutput out)
Compress
in[0:len] into out . |
static void |
decompress(DataInput in,
byte[] out,
int len)
Decompress data that has been compressed with
compress(byte[], int, byte[], DataOutput) . |
public static boolean compress(byte[] in, int len, byte[] tmp, DataOutput out) throws IOException
in[0:len]
into out
.
This returns false
if the content cannot be compressed. The number
of bytes written is guaranteed to be less than len
otherwise.IOException
public static void decompress(DataInput in, byte[] out, int len) throws IOException
compress(byte[], int, byte[], DataOutput)
.
len
must be the original length, not the compressed length.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.