Reimplementation of readLine methods for IODevice.