Coding of the DocReader