In a medium saucepan over medium heat, cook the pineapple, water, sugar, salt, cornstarch and egg yolks, stirring constantly.
Once the mixture starts to boil, reduce the heat slightly and let the mixture cook until it has thickened. It should be about the texture of a very soft pudding.
In a small bowl, beat the egg whites until they are frothy and thick.
Add the egg whites to the pineapple mixture while it is hot. Fold it in to mix.