1 19 20 package org.netbeans.core.xml; 21 22 import java.io.*; 23 import java.net.*; 24 import java.util.*; 25 import javax.xml.parsers.*; 26 import javax.xml.parsers.SAXParserFactory ; 27 import junit.framework.*; 28 import org.netbeans.junit.*; 29 import org.openide.util.*; 30 import org.xml.sax.*; 31 32 33 34 38 public class FactoriesRunnableHid extends HashMap implements Runnable { 39 public void run () { 40 try { 41 put ("dom", javax.xml.parsers.DocumentBuilderFactory.newInstance()); 42 put ("sax", javax.xml.parsers.SAXParserFactory.newInstance ()); 43 } catch (Exception ex) { 44 IllegalStateException e = new IllegalStateException (ex.getMessage ()); 45 e.initCause (ex); 46 throw e; 47 } 48 } 49 } 50 | Popular Tags |