Transform text stream into an objects stream.