Started factoring common code from the input streams implementations into the base class.
Started factoring common code from the input streams implementations into the
base class.

timoc/colm,timoc/colm,timoc/colm,timoc/colm