/**
  * Parses an HTML source to a List of Element objects
  *
  * @param reader the HTML source
  * @param style a StyleSheet object
  * @param tags a map containing supported tags and their processors
  * @param providers map containing classes with extra info
  * @return a List of Element objects
  * @throws IOException
  * @since 5.0.6
  */
 public static List<Element> parseToList(
     final Reader reader,
     final StyleSheet style,
     final Map<String, HTMLTagProcessor> tags,
     final HashMap<String, Object> providers)
     throws IOException {
   HTMLWorker worker = new HTMLWorker(null, tags, style);
   worker.document = worker;
   worker.setProviders(providers);
   worker.objectList = new ArrayList<Element>();
   worker.parse(reader);
   return worker.objectList;
 }
 /**
  * Sets the providers.
  *
  * @deprecated use setProviders() instead
  */
 @Deprecated
 public void setInterfaceProps(final HashMap<String, Object> providers) {
   setProviders(providers);
 }