[jdom-interest] Adapters

Rolf jdom at tuis.net
Sun Sep 18 21:38:16 PDT 2011


org.jdom2.adapters can be stripped of a lot of stuff.

For a start, the API has basically two methods, createDocument() which 
creates an empty org.w3.dom Document class based on the appropriate 
adaptor. The getDocument() methods are a simple wrapper for creating a 
DOM Document from a file or input source.

In reality, only the createDocument() class is used, and, further, the 
only actual Adapter that is needed is the JAXPDOMAdapter

The rest can all be stripped.

Any issues?

Rolf


More information about the jdom-interest mailing list