This patch fixes issue #979, where the parseFromStream definition in the header is different from the implementation.