@InterfaceAudience.Private public final class CompressionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
compressionOverhead(int bufferSize)
Most compression algorithms can be presented with pathological input that causes an expansion
rather than a compression.
|
static int |
roundInt2(int v)
Round up to the next power of two, unless the value would become negative (ints are signed), in
which case just return Integer.MAX_VALUE.
|
public static int roundInt2(int v)
public static int compressionOverhead(int bufferSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.