istream >> overloading does it.