JDOM2 Feature Location Aware

rolfl edited this page Apr 8, 2012 · 1 revision

JDOM 2.x introduces an enhanced JDOMFactory. When a SAX Parser is used to create JDOM content, and that content is linked to location-sensitive information (line x, column y), the location information is given to the new methods on the JDOMFactory. The default implementations of the JDOMFactory (the DefaultJDOMFactory) will ignore this information, but, JDOM 2.x introduces the Located implementations of the JDOM Classes that use this information. To access this information you should use the LocatedJDOMFactory and related classes in the org.jdom2.located package.