public JTidyDocumentBuilderFactory(DocumentBuilderSetting[] settings) throws DOMTestIncompatibleException {
  super(settings);
  try {
    ClassLoader classLoader=ClassLoader.getSystemClassLoader();
    Class tidyClass=classLoader.loadClass("org.w3c.tidy.Tidy");
    tidyConstructor=tidyClass.getConstructor(NO_CLASSES);
    parseDOMMethod=tidyClass.getMethod("parseDOM",new Class[]{java.io.InputStream.class,java.io.OutputStream.class});
    domImpl=new JTidyDOMImplementation();
  }
 catch (  Exception ex) {
    throw new DOMTestIncompatibleException(ex,null);
  }
  if (settings != null) {
    for (int i=0; i < settings.length; i++) {
    }
  }
}

public JTidyDocumentBuilderFactory ( DocumentBuilderSetting [ ] settings ) throws DOMTestIncompatibleException { super ( settings ) ; try { ClassLoader classLoader = ClassLoader . getSystemClassLoader ( ) ; Class tidyClass = classLoader . loadClass ( "org.w3c.tidy.Tidy" ) ; tidyConstructor = tidyClass . getConstructor ( NO_CLASSES ) ; parseDOMMethod = tidyClass . getMethod ( "parseDOM" , new Class [ ] { java . io . InputStream . class , java . io . OutputStream . class } ) ; domImpl = new JTidyDOMImplementation ( ) ; } catch ( Exception ex ) { throw new DOMTestIncompatibleException ( ex , null ) ; } if ( settings != null ) { for ( int i = 0 ; i < settings . length ; i ++ ) { } } }
creates a implementation of domtestdocumentbuilderfactory using jtidy ' s html parser and dom implementation
