Add helper method to read patterns from Reader  

A slight refactoring, allowing patterns to be read from any kind of stream.