Class HTMLImageFinder

java.lang.Object
VASSAL.search.HTMLImageFinder

public class HTMLImageFinder extends Object
Parses image tags out of an HTML file or string. Used to add the image filenames to a list, e.g. of images used.
  • Constructor Details

    • HTMLImageFinder

      public HTMLImageFinder(File file)
      Parameters:
      file - - Prepares to parse an HTML file in the module
    • HTMLImageFinder

      public HTMLImageFinder(String string)
      Parameters:
      string - Prepares to parse an html string
  • Method Details

    • addImageNames

      public void addImageNames(Collection<String> s)
      Parses the HTML and adds any image filenames to the collection
      Parameters:
      s - Collection to add image filenames to.