You call the static method XMLEventFactory.newInstance() when you want to create new instances of XMLEventFactory.
New instances of the abstract class XMLEventFactory are created by calling the newInstance method on the class. The static method XMLEventFactory.newInstance is then used to create a new factory instance. This factory references the javax.xml.stream.XMLEventFactory property to instantiate the factory. The algorithm used to obtain the instance is the same as for XMLInputFactory and XMLOutputFactory but references the javax.xml.stream.XMLEventFactory system property.
I think this is a typical feature of technical writing of all kinds. When I was first learning Java I used to read a magazine article, then when I got to the end I would realize I didn't know what the heck it was about. After re-reading it a couple of times and tinkering around with some code, I would eventually get it.
Originally posted by Joseph Sweet:
I had to leave it aside so many times, go look for better explanations in other places, and then come back and finally understand what they were trying to say.
Tired of reading Object Oriented Analysis and Design books that only makes sense after you're an expert?