public class DecoderUtil extends Util
BACKWARD_SIZE_MAX, BLOCK_HEADER_SIZE_MAX, STREAM_HEADER_SIZE, VLI_MAX, VLI_SIZE_MAX| Constructor and Description |
|---|
DecoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areStreamFlagsEqual(StreamFlags a,
StreamFlags b) |
static StreamFlags |
decodeStreamFooter(byte[] buf) |
static StreamFlags |
decodeStreamHeader(byte[] buf) |
static long |
decodeVLI(InputStream in) |
static boolean |
isCRC32Valid(byte[] buf,
int off,
int len,
int ref_off) |
getVLISizepublic static boolean isCRC32Valid(byte[] buf,
int off,
int len,
int ref_off)
public static StreamFlags decodeStreamHeader(byte[] buf) throws IOException
IOExceptionpublic static StreamFlags decodeStreamFooter(byte[] buf) throws IOException
IOExceptionpublic static boolean areStreamFlagsEqual(StreamFlags a, StreamFlags b)
public static long decodeVLI(InputStream in) throws IOException
IOException