check to see if input stream has data available. throw exception when there is not any and there should be. makes the code a little more adaptable. seems more applicable on slow computers running the poller