code: 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;
          }
      }
docs: Decodes the chunk type from the type tag byte.
  
  @param type The tag byte extracted from the stream
  @return The appropriate {@link ChunkType}, defaulting to {@link ChunkType#RESERVED_UNSKIPPABLE}