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(java.io.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 java.io.IOException
java.io.IOExceptionpublic static StreamFlags decodeStreamFooter(byte[] buf) throws java.io.IOException
java.io.IOExceptionpublic static boolean areStreamFlagsEqual(StreamFlags a, StreamFlags b)
public static long decodeVLI(java.io.InputStream in)
throws java.io.IOException
java.io.IOException