concept PullParser in category java

This is an excerpt from Manning's book JavaFX in Action.
At the heart of JavaFX’s web service support are three classes. In the javafx.io.http package there’s the HttpRequest class, used to make the HTTP request; in javafx.data.pull there’s PullParser and Event, used to parse the reply.
Our application also uses three classes itself: FlickrService handles the request (using HttpRequest), FlickrResult processes the result (using PullParser and Event), and FlickrPhoto stores the details of the photos as they are pulled from the result.
Listing 8.5 is the second half of our parser class. It contains the code that responds to the PullParser events. So we’re not working blindly, the following is an example of the sort of XML the web service might reply with. Each opening element tag, closing element tag, and loose text content inside an element cause our event handler to be called.