>That is one very long and complicated class. It could do with some refactoring to simplify. All those If statements and the nested if statements are all code smells.
Could you provide an example of making it simpler? I need to keep support for the binary format, the Microsoft Office XML very complicated format as well as the non binary format.