private static ChunkType mapChunkType ( byte type ) { if ( type == 0 ) { return ChunkType . COMPRESSED_DATA ; } else if ( type == 1 ) { return ChunkType . UNCOMPRESSED_DATA ; } else if ( type == ( byte ) 0xff ) { return ChunkType . STREAM_IDENTIFIER ; } else if ( ( type & 0x80 ) == 0x80 ) { return ChunkType . RESERVED_SKIPPABLE ; } else { return ChunkType . RESERVED_UNSKIPPABLE ; } }
Decodes the chunk type from the type tag byte .