* The stream is assumed to be using the ISO 8859-1 character encoding.
*/
public synchronized void load(InputStream is) throws IOException {
BufferedReader r;
r = new BufferedReader(new InputStreamReader(is, PREFERENCE_ENCODING));
DocumentFactory df = new SAXDocumentFactory
(GenericDOMImplementation.getDOMImplementation(),
xmlParserClassName);
Document doc = df.createDocument("http://xml.apache.org/batik/preferences",
"preferences",
null,
r);
Element elt = doc.getDocumentElement();
for (Node n = elt.getFirstChild(); n != null; n = n.getNextSibling()) {