Writes a custom reader and processor (Batch example)