Be compatible with readAll().