Difference between Pull Parsing and Push Parsing: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:


Streaming ''push parsing'' refers to a programming model in which a parser sends (pushes) data to the client when the parser encounters an "interesting" structure.
Streaming ''push parsing'' refers to a programming model in which a parser sends (pushes) data to the client when the parser encounters an "interesting" structure.
With pull parsing, the application controls the application thread, and can call methods on the parser when needed. With pull parsers

Revision as of 01:07, 11 November 2016

Internal

Overview

Streaming pull parsing refers to a programming model in which a client application calls a "next element"-type method on a parser.

Streaming push parsing refers to a programming model in which a parser sends (pushes) data to the client when the parser encounters an "interesting" structure.

With pull parsing, the application controls the application thread, and can call methods on the parser when needed. With pull parsers