Added functionality to read from an input stream
Authored by: hotzst 2009-09-18
Parent: [r2371]
Child: [r2373]