Skip to content

GameBox File Parser

Stefan Baumann edited this page Apr 19, 2020 · 3 revisions

This library includes one of the most - if not the most - extensive gbx file parsers available. There is a general framework for parsing gbx files and implementations for the parsing of over 100 different chunks present in them. The full structure of data nodes in a gbx file can be obtained via the GameBoxFile.Parse() method, with which a file can be parsed either from a specified path or from a stream. For easy access to the most commonly needed metadata, there exist special MetadataProvider classes which take a GameBoxFile and provide direct access to the metadata - no need to dig through data nodes. Furthermore, these metadata provider classes have multiple sources for most of the properties provided, so even if there are some chunks missing in the gbx file, it can still provide all of the metadata properties in many cases. If the specific property is present multiple times in the file, the metadata provider offers the possibility to validate the data between the different sources to detect manipulation attempts.