Extracted the StreamHeaderUpdater class and interface from the MetadataRootWriter class