Remove throws statement, as no IOException is actually thrown.